- All Implemented Interfaces:
BaseSeq<Object>,Copyable<MSeq<Object>>,MSeq<Object>,Seq<Object>,Serializable,Comparable<Empty.EmptyMSeq>,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 new copy of typeT.get(int index) Return the value at the givenindex.iterator()intlength()Return the length of this sequence.Returns a list iterator over the elements in this sequence (in a proper sequence).<B> MSeq<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.voidSet thevalueat the givenindex.sort(int start, int end, Comparator<? super Object> comparator) Sorts this sequence according to the order induced by the specifiedComparator.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.toISeq()Return a read-only projection of this sequence.toString()static Empty.EmptyMSeqReturns the enum constant of this class with the specified name.static Empty.EmptyMSeq[]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.MSeq
fill, reverse, setAll, setAll, setAll, shuffle, shuffle, sort, sort, sort, sort, sort, swap, swap, swapMethods 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
-
set
Description copied from interface:MSeqSet thevalueat the givenindex. -
sort
Description copied from interface:MSeqSorts this sequence according to the order induced by the specifiedComparator.All elements in this sequence must be mutually comparable using the specified comparator (that is,
c.compare(e1, e2)must not throw aClassCastExceptionfor any elementse1ande2in the sequence).If the specified comparator is
nullthen all elements in this list must implement theComparableinterface and the elements' Comparable natural ordering should be used.- Specified by:
sortin interfaceMSeq<Object>- Parameters:
start- the start index where to start sorting (inclusively)end- the end index where to stop sorting (exclusively)comparator- theComparatorused to compare sequence elements. Anullvalue indicates that the elements' Comparable natural ordering should be used- Returns:
thissequence
-
listIterator
Description copied from interface:MSeqReturns a list iterator over the elements in this sequence (in a proper sequence).- Specified by:
listIteratorin interfaceBaseSeq<Object>- Specified by:
listIteratorin interfaceMSeq<Object>- Returns:
- a list iterator over the elements in this list (in a proper 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 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 a subsequence view instead of a 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 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 a sequence can be used as a range operation by passing a sub-sequence view instead of a whole sequence.
-
map
Description copied from interface:SeqBuilds a new sequence by applying a function to all elements of this sequence.- Specified by:
mapin interfaceMSeq<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>
-
toISeq
Description copied from interface:MSeqReturn a read-only projection of this sequence. Changes to the original sequence will not influence the returnedISeq. -
copy
Description copied from interface:CopyableReturn a new copy of typeT. -
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. -
iterator
-
toString
- Overrides:
toStringin classEnum<Empty.EmptyMSeq>
-