|
For the latest news and information visit The GNU Crypto project |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
gnu.crypto.util.SimpleList
A simple way to create immutable n-tuples. This class can be created with up to four elements specified via one of the constructors, or with a collection of arbitrary size.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
SimpleList()
Create the empty list. |
|
SimpleList(Collection c)
Create an n-tuple of arbitrary size. |
|
SimpleList(Object element)
Create a singleton list. |
|
SimpleList(Object e1,
Object e2)
Create an ordered pair (2-tuple). |
|
SimpleList(Object e1,
Object e2,
Object e3)
Create a 3-tuple. |
|
SimpleList(Object e1,
Object e2,
Object e3,
Object e4)
Create a 4-tuple. |
Method Summary | |
---|---|
Object |
get(int index)
|
int |
size()
|
String |
toString()
|
Methods inherited from class java.util.AbstractList |
---|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
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 |
Constructor Detail |
public SimpleList(Object element)
public SimpleList(Object e1, Object e2)
e1
- The first element.e2
- The second element.public SimpleList(Object e1, Object e2, Object e3)
e1
- The first element.e2
- The second element.e3
- The third element.public SimpleList(Object e1, Object e2, Object e3, Object e4)
e1
- The first element.e2
- The second element.e3
- The third element.e4
- The fourth element.public SimpleList()
public SimpleList(Collection c)
c
- The collection.Method Detail |
public int size()
public Object get(int index)
public String toString()
|
For the latest news and information visit The GNU Crypto project |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |