- Type Parameters:
 T- the array element type
- All Known Implementing Classes:
 Array.Store.Ref,CharStore,ObjectStore
public static interface Array.Store<T>
Minimal interface for accessing an underlying array structure.
- Since:
 - 3.4
 - Version:
 - 3.4
 
- 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classMutable reference of an underlying arrayStore. - 
Method Summary
Modifier and TypeMethodDescriptiondefault Array.Store<T>copy()Return a new arrayStorecopy.default Array.Store<T>copy(int from) Return a new arrayStorewith the copied portion of the underlying array.copy(int from, int until) Return a new arrayStorewith the copied portion of the underlying array.get(int index) Return the value at the given arrayindex.intlength()Return the length of the arrayStore.newInstance(int length) Return a newStoreof the same type and the given length.voidWrite the givenvalueat the givenindexto the underlying array structure.voidsort(int from, int until, Comparator<? super T> comparator) Sort the store. 
- 
Method Details
- 
set
Write the givenvalueat the givenindexto the underlying array structure.- Parameters:
 index- the array indexvalue- the value to set
 - 
get
Return the value at the given arrayindex.- Parameters:
 index- the array index- Returns:
 - the value at the given index
 
 - 
sort
Sort the store.- Parameters:
 from- the start index where to start sorting (inclusively)until- 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
 - 
length
int length()Return the length of the arrayStore.- Returns:
 - the array store length
 
 - 
copy
Return a new arrayStorewith the copied portion of the underlying array.- Parameters:
 from- the start index of the copied arrayuntil- the end index of the copied array- Returns:
 - a new copy of the given range
 
 - 
copy
Return a new arrayStorewith the copied portion of the underlying array.- Parameters:
 from- the start index of the copied array- Returns:
 - a new copy of the given range
 
 - 
copy
Return a new arrayStorecopy.- Returns:
 - a new array 
Storecopy 
 - 
newInstance
Return a newStoreof the same type and the given length.- Parameters:
 length- the length of the new store- Returns:
 - a new 
Storeof the same type and the given length. - Throws:
 NegativeArraySizeException- if the length is smaller than zero
 
 -