java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
com.phoenixst.plexus.operations.Product.OrderedPair
- All Implemented Interfaces:
- java.util.Collection, java.lang.Iterable, java.util.List, java.util.RandomAccess, java.io.Serializable
- Enclosing class:
- Product
- private static class Product.OrderedPair
- extends java.util.AbstractList
- implements java.util.RandomAccess, java.io.Serializable
A simple immutable ordered pair implementation.
|
Method Summary |
java.lang.Object |
get(int index)
Returns the elements at the specified position in the list. |
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, set, subList |
first
private java.lang.Object first
second
private java.lang.Object second
Product.OrderedPair
Product.OrderedPair(java.lang.Object first,
java.lang.Object second)
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