java.util.List , it is in fact
immutable.
| Modifier and Type | Field and Description |
|---|---|
| private static final Object[] | |
| private static final Sequence | |
| private static final long | |
| private final Object[] |
| Modifier and Type | Method and Description |
|---|---|
| public < the new type N> Sequence | |
| public static < the element type T> Sequence | |
| public boolean | Returns: true if they are equal, false otherwisethe other sequence other)Overrides java. Implements java. Determine whether this sequence is equal to another. |
| public boolean | |
| public T | Returns: the valuethe index index)Implements abstract java. Implements java. Get the value at a certain index. |
| public int | Returns: the hash codeOverrides java. Implements java. Get the hash code for this sequence. |
| public boolean | Returns: true if the sequence has no elementsOverrides java. Implements java. Determine whether this sequence is empty. |
| public Iterator | Returns: an iterator over the elements of this sequenceOverrides java. Implements java. Get an iterator over the elements of this sequence. |
| public static < the element type T> Sequence | Returns: a sequencethe members members)Hides java. Return a sequence of the given members. |
| public static < the element type T> Sequence | Returns: a sequencethe members members)Hides java. Return a sequence of the given members. |
| public int | Returns: the number of elementsImplements abstract java. Implements java. Return the number of elements in this sequence. |
| public Object[] | Returns: a copy of the values arrayOverrides java. Implements java. Get a copy of the values array. |
| empty | back to summary |
|---|---|
| private static final Object[] empty | |
| EMPTY | back to summary |
|---|---|
| private static final Sequence<?> EMPTY | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| values | back to summary |
|---|---|
| private final Object[] values | |
| Sequence | back to summary |
|---|---|
| private Sequence(final Object[] values) | |
| cast | back to summary |
|---|---|
| public <N> Sequence Cast a sequence to a different type if all the contained elements are of the subtype.
| |
| empty | back to summary |
|---|---|
| public static <T> Sequence Return an empty sequence.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Implements java. Determine whether this sequence is equal to another.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Sequence<?> other) Determine whether this sequence is equal to another.
| |
| get | back to summary |
|---|---|
| public T get(final int index) Implements abstract java. Implements java. Get the value at a certain index.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Get the hash code for this sequence.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides java. Implements java. Determine whether this sequence is empty.
| |
| iterator | back to summary |
|---|---|
| public Iterator Overrides java. Implements java. Get an iterator over the elements of this sequence.
| |
| of | back to summary |
|---|---|
| public static <T> Sequence Hides java. Return a sequence of the given members.
| |
| of | back to summary |
|---|---|
| public static <T> Sequence Hides java. Return a sequence of the given members.
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Return the number of elements in this sequence.
| |
| toArray | back to summary |
|---|---|
| public Object[] toArray() Overrides java. Implements java. Get a copy of the values array.
| |