Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Util.Collections
Class Triple  view Triple download Triple.java

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byUtil.Collections.Triple
All Implemented Interfaces:
java.util.Collection, java.lang.Iterable, java.util.List, java.io.Serializable

public class Triple
extends java.util.AbstractList
implements java.io.Serializable

Version:
$Id: Triple.java,v 1.2 2003/05/12 10:05:21 joewhaley Exp $

Nested Class Summary
 
Nested classes inherited from class java.util.AbstractList
 
Field Summary
 java.lang.Object left
           
 java.lang.Object middle
           
 java.lang.Object right
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Triple(java.lang.Object left, java.lang.Object middle, java.lang.Object right)
           
 
Method Summary
 java.lang.Object get(int index)
          Returns the elements at the specified position in the list.
 java.lang.Object set(int index, java.lang.Object element)
          Replace an element of this list with another object (optional operation).
 int size()
          Get the number of elements in this list.
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Field Detail

left

public java.lang.Object left

middle

public java.lang.Object middle

right

public java.lang.Object right
Constructor Detail

Triple

public Triple(java.lang.Object left,
              java.lang.Object middle,
              java.lang.Object right)
Method Detail

size

public int size()
Description copied from interface: java.util.List
Get the number of elements in this list. If the list contains more than Integer.MAX_VALUE elements, return Integer.MAX_VALUE.

Specified by:
size in interface java.util.List

get

public java.lang.Object get(int index)
Description copied from class: java.util.AbstractList
Returns the elements at the specified position in the list.

Specified by:
get in interface java.util.List

set

public java.lang.Object set(int index,
                            java.lang.Object element)
Description copied from class: java.util.AbstractList
Replace an element of this list with another object (optional operation). This implementation always throws an UnsupportedOperationException.

Specified by:
set in interface java.util.List