- All Implemented Interfaces:
BaseSeq<Object>,Copyable<MSeq<Object>>,ISeq<Object>,Seq<Object>,Serializable,Comparable<Empty.EmptyISeq>,Constable,Iterable<Object>,IntFunction<Object>,RandomAccess
- Enclosing class:
- Empty
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn a newSeqwith the givenvaluesappended.Return a newSeqwith the givenvaluesappended.asList()Returns a fixed-size list backed by the specified sequence.copy()Return a shallow copy of this sequence.get(int index) Return the value at the givenindex.iterator()intlength()Return the length of this sequence.<B> ISeq<B>Builds a new sequence by applying a function to all elements of this sequence.Returns a possibly parallelStreamwith this sequence as its source.Return a newSeqwith the givenvaluesprepended.Return a newSeqwith the givenvaluesprepended.stream()Returns a sequential Stream with this sequence as its source.subSeq(int start) Returns a view of the portion of this sequence between the specifiedstart, inclusive, andend, exclusive.subSeq(int start, int end) Returns a view of the portion of this sequence between the specifiedstart, inclusive, andend, exclusive.toString()static Empty.EmptyISeqReturns the enum constant of this class with the specified name.static Empty.EmptyISeq[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface io.jenetics.util.BaseSeq
forEach, isEmpty, listIterator, nonEmptyMethods inherited from interface io.jenetics.util.Seq
apply, asISeq, asMSeq, contains, equals, forAll, hashCode, indexOf, indexOf, indexOf, indexWhere, indexWhere, indexWhere, isSorted, isSorted, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexWhere, lastIndexWhere, lastIndexWhere, size, toArray, toArray, toArray, toString, toString
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
iterator
-
subSeq
Description copied from interface:SeqReturns a view of the portion of this sequence between the specifiedstart, inclusive, andend, exclusive. (Ifstartandendare equal, the returned sequence has the length zero.) The returned sequence is backed by this sequence, so non-structural changes in the returned sequence are reflected in this array, and vice-versa.This method eliminates the need for explicit range operations (of the populationSort that commonly exist for arrays). Any operation that expects an array can be used as a range operation by passing an sub sequence view instead of an whole sequence.
-
subSeq
Description copied from interface:SeqReturns a view of the portion of this sequence between the specifiedstart, inclusive, andend, exclusive. (Ifstartandendare equal, the returned sequence has the length zero.) The returned sequence is backed by this sequence, so non-structural changes in the returned sequence are reflected in this sequence, and vice-versa.This method eliminates the need for explicit range operations (of the populationSort that commonly exist for arrays). Any operation that expects an sequence can be used as a range operation by passing an sub sequence view instead of an whole sequence.
-
get
Description copied from interface:BaseSeqReturn the value at the givenindex. -
length
Description copied from interface:BaseSeqReturn the length of this sequence. Once the sequence is created, the length can't be changed. -
asList
Description copied from interface:SeqReturns a fixed-size list backed by the specified sequence. (Changes to the returned list "write through" to the array.) The returned list is fixed size, serializable and implementsRandomAccess. -
map
Description copied from interface:SeqBuilds a new sequence by applying a function to all elements of this sequence.- Specified by:
mapin interfaceISeq<Object>- Specified by:
mapin interfaceSeq<Object>- Type Parameters:
B- the element type of the returned collection.- Parameters:
mapper- the function to apply to each element.- Returns:
- a new sequence of type That resulting from applying the given function f to each element of this sequence and collecting the results.
-
append
Description copied from interface:SeqReturn a newSeqwith the givenvaluesappended. -
append
Description copied from interface:SeqReturn a newSeqwith the givenvaluesappended. -
prepend
Description copied from interface:SeqReturn a newSeqwith the givenvaluesprepended. -
prepend
Description copied from interface:SeqReturn a newSeqwith the givenvaluesprepended. -
stream
Description copied from interface:BaseSeqReturns a sequential Stream with this sequence as its source. -
parallelStream
Description copied from interface:SeqReturns a possibly parallelStreamwith this sequence as its source. It is allowable for this method to return a sequential stream.- Specified by:
parallelStreamin interfaceSeq<Object>- Returns:
- a possibly parallel
Streamover the elements in this collection
-
spliterator
- Specified by:
spliteratorin interfaceBaseSeq<Object>- Specified by:
spliteratorin interfaceIterable<Object>
-
copy
Description copied from interface:ISeqReturn a shallow copy of this sequence. The sequence elements are not cloned. -
toString
- Overrides:
toStringin classEnum<Empty.EmptyISeq>
-