java.lang.Object
CharStore
- All Implemented Interfaces:
Array.Store<Character>
,Serializable
- Since:
- 3.0
- Version:
- 6.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jenetics.internal.collection.Array.Store
Array.Store.Ref<T>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy
(int from, int until) Return a new arrayStore
with the copied portion of the underlying array.get
(int index) Return the value at the given arrayindex
.int
length()
Return the length of the arrayStore
.newInstance
(int length) Return a newStore
of the same type and the given length.static CharStore
of
(char[] chars) void
Write the givenvalue
at the givenindex
to the underlying array structure.void
sort
(int from, int until, Comparator<? super Character> comparator) Sort the store.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jenetics.internal.collection.Array.Store
copy, copy
-
Field Details
-
array
-
-
Constructor Details
-
CharStore
-
-
Method Details
-
get
Description copied from interface:Array.Store
Return the value at the given arrayindex
.- Specified by:
get
in interfaceArray.Store<Character>
- Parameters:
index
- the array index- Returns:
- the value at the given index
-
sort
Description copied from interface:Array.Store
Sort the store.- Specified by:
sort
in interfaceArray.Store<Character>
- Parameters:
from
- the start index where to start sorting (inclusively)until
- the end index where to stop sorting (exclusively)comparator
- theComparator
used to compare sequence elements. Anull
value indicates that the elements' Comparable natural ordering should be used
-
set
Description copied from interface:Array.Store
Write the givenvalue
at the givenindex
to the underlying array structure.- Specified by:
set
in interfaceArray.Store<Character>
- Parameters:
index
- the array indexvalue
- the value to set
-
copy
Description copied from interface:Array.Store
Return a new arrayStore
with the copied portion of the underlying array.- Specified by:
copy
in interfaceArray.Store<Character>
- Parameters:
from
- the start index of the copied arrayuntil
- the end index of the copied array- Returns:
- a new copy of the given range
-
newInstance
Description copied from interface:Array.Store
Return a newStore
of the same type and the given length.- Specified by:
newInstance
in interfaceArray.Store<Character>
- Parameters:
length
- the length of the new store- Returns:
- a new
Store
of the same type and the given length.
-
length
Description copied from interface:Array.Store
Return the length of the arrayStore
.- Specified by:
length
in interfaceArray.Store<Character>
- Returns:
- the array store length
-
of
-