- 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
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn a newSeq
with the givenvalues
appended.Return a newSeq
with the givenvalues
appended.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()
int
length()
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 parallelStream
with this sequence as its source.Return a newSeq
with the givenvalues
prepended.Return a newSeq
with the givenvalues
prepended.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.EmptyISeq
Returns 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, valueOf
Methods inherited from interface io.jenetics.util.BaseSeq
forEach, isEmpty, listIterator, nonEmpty
Methods 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:Seq
Returns a view of the portion of this sequence between the specifiedstart
, inclusive, andend
, exclusive. (Ifstart
andend
are 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:Seq
Returns a view of the portion of this sequence between the specifiedstart
, inclusive, andend
, exclusive. (Ifstart
andend
are 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.
-
get
Description copied from interface:BaseSeq
Return the value at the givenindex
. -
length
Description copied from interface:BaseSeq
Return the length of this sequence. Once the sequence is created, the length can't be changed. -
asList
Description copied from interface:Seq
Returns 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:Seq
Builds a new sequence by applying a function to all elements of this sequence.- Specified by:
map
in interfaceISeq<Object>
- Specified by:
map
in 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:Seq
Return a newSeq
with the givenvalues
appended. -
append
Description copied from interface:Seq
Return a newSeq
with the givenvalues
appended. -
prepend
Description copied from interface:Seq
Return a newSeq
with the givenvalues
prepended. -
prepend
Description copied from interface:Seq
Return a newSeq
with the givenvalues
prepended. -
stream
Description copied from interface:BaseSeq
Returns a sequential Stream with this sequence as its source. -
parallelStream
Description copied from interface:Seq
Returns a possibly parallelStream
with this sequence as its source. It is allowable for this method to return a sequential stream.- Specified by:
parallelStream
in interfaceSeq<Object>
- Returns:
- a possibly parallel
Stream
over the elements in this collection
-
spliterator
- Specified by:
spliterator
in interfaceBaseSeq<Object>
- Specified by:
spliterator
in interfaceIterable<Object>
-
copy
Description copied from interface:ISeq
Return a shallow copy of this sequence. The sequence elements are not cloned. -
toString
- Overrides:
toString
in classEnum<Empty.EmptyISeq>
-