|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jtiger.framework.SequenceFactory
public final class SequenceFactory
Returns instances of Sequence such that state cannot be modified.
Sequence| Method Summary | ||
|---|---|---|
static
|
newConstantSequence(E constant,
int length)
Returns a new instance of Sequence that is backed by the given constant for the given length. |
|
static
|
newSequence(E... a)
Returns a new instance of Sequence that is backed by the given arguments. |
|
static
|
newSequence(List<E> l)
Returns a new instance of Sequence that is backed by the given List. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <E> Sequence<E> newSequence(E... a)
throws NullPointerException
Sequence that is backed by the given arguments.
a - The array that backs the returned Sequence.
Sequence that is backed by the given arguments.
NullPointerException - If a is null.
public static <E> Sequence<E> newSequence(List<E> l)
throws NullPointerException
Sequence that is backed by the given List.
l - The List that backs the returned Sequence.
Sequence that is backed by the given List.
NullPointerException - If l is null.
public static <E> Sequence<E> newConstantSequence(E constant,
int length)
throws IllegalArgumentException
Sequence that is backed by the given constant for the given length.
constant - The constant that backs the returned Sequence.length - The length of the constant that backs the returned Sequence.
Sequence that is backed by the given constant.
IllegalArgumentException - If length is less than 1.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||