java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
Util.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 $
|
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 |
left
public java.lang.Object left
middle
public java.lang.Object middle
right
public java.lang.Object right
Triple
public Triple(java.lang.Object left,
java.lang.Object middle,
java.lang.Object right)
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