Uses of Interface
civitas.celestis.util.array.SafeArray

Packages that use SafeArray
  • Uses of SafeArray in civitas.celestis.util.array

    Classes in civitas.celestis.util.array that implement SafeArray
    Modifier and Type
    Class
    Description
    class 
    A type-safe array which stores atomic references as opposed to the values themselves.
    class 
    A basic type-safe array with no built-in synchronization or thread-safety measures.
    class 
    A synchronized instance of FastArray.
    Methods in civitas.celestis.util.array that return SafeArray
    Modifier and Type
    Method
    Description
    default SafeArray<E>
    SafeArray.append(SafeArray<? extends E> a)
    Append the provided array a to the end of this array, then returns the resulting array.
    static <E> SafeArray<E>
    SafeArray.atomicOf(E... elements)
    Creates a new atomic array from the provided array of elements.
    DoubleArray.boxed()
    Returns an array containing the elements of this array in their boxed form.
    DoubleFastArray.boxed()
    Returns an array containing the elements of this array in their boxed form.
    FloatArray.boxed()
    Returns an array containing the elements of this array in their boxed form.
    FloatFastArray.boxed()
    Returns an array containing the elements of this array in their boxed form.
    IntArray.boxed()
    Returns an array containing the elements of this array in their boxed form.
    IntFastArray.boxed()
    Returns an array containing the elements of this array in their boxed form.
    LongArray.boxed()
    Returns an array containing the elements of this array in their boxed form.
    LongFastArray.boxed()
    Returns an array containing the elements of this array in their boxed form.
    static <E> SafeArray<E>
    SafeArray.copyOf(SafeArray<? extends E> a)
    Creates a new thread-unsafe copy of the provided array a.
    default SafeArray<E>
    SafeArray.filter(Predicate<? super E> f)
    Tests each element of this array using the provided predicate f, collects all elements the predicate returns true to, then returns a new array containing only the filtered elements.
    static <E> SafeArray<E>
    SafeArray.from(Stream<E> s)
    Creates a new type-safe array from a stream of values.
    <F> SafeArray<F>
    AtomicArray.map(Function<? super E,? extends F> f)
    Applies the provided mapper function f to each element of this array, then returns a new array containing the return values of the function f.
    <F> SafeArray<F>
    FastArray.map(Function<? super E,? extends F> f)
    Applies the provided mapper function f to each element of this array, then returns a new array containing the return values of the function f.
    <F> SafeArray<F>
    SafeArray.map(Function<? super E,? extends F> f)
    Applies the provided mapper function f to each element of this array, then returns a new array containing the return values of the function f.
    <F> SafeArray<F>
    SyncArray.map(Function<? super E,? extends F> f)
    Applies the provided mapper function f to each element of this array, then returns a new array containing the return values of the function f.
    <F> SafeArray<F>
    DoubleArray.mapToObj(DoubleFunction<? extends F> f)
    Applies the provided mapper function f to each element of this array, then returns a new array containing the return values of the function f.
    <F> SafeArray<F>
    DoubleFastArray.mapToObj(DoubleFunction<? extends F> f)
    Applies the provided mapper function f to each element of this array, then returns a new array containing the return values of the function f.
    <F> SafeArray<F>
    FloatArray.mapToObj(FloatFunction<? extends F> f)
    Applies the provided mapper function f to each element of this array, then returns a new array containing the return values of the function f.
    <F> SafeArray<F>
    FloatFastArray.mapToObj(FloatFunction<? extends F> f)
    Applies the provided mapper function f to each element of this array, then returns a new array containing the return values of the function f.
    <F> SafeArray<F>
    IntArray.mapToObj(IntFunction<? extends F> f)
    Applies the provided mapper function f to each element of this array, then returns a new array containing the return values of the function f.
    <F> SafeArray<F>
    IntFastArray.mapToObj(IntFunction<? extends F> f)
    Applies the provided mapper function f to each element of this array, then returns a new array containing the return values of the function f.
    <F> SafeArray<F>
    LongArray.mapToObj(LongFunction<? extends F> f)
    Applies the provided mapper function f to each element of this array, then returns a new array containing the return values of the function f.
    <F> SafeArray<F>
    LongFastArray.mapToObj(LongFunction<? extends F> f)
    Applies the provided mapper function f to each element of this array, then returns a new array containing the return values of the function f.
    <F, G> SafeArray<G>
    AtomicArray.merge(SafeArray<F> a, BiFunction<? super E,? super F,? extends G> f)
    Between this array and the provided array a, this applies the merger function f to each corresponding pair of elements, then returns a new array containing the return values of the merger function f.
    <F, G> SafeArray<G>
    FastArray.merge(SafeArray<F> a, BiFunction<? super E,? super F,? extends G> f)
    Between this array and the provided array a, this applies the merger function f to each corresponding pair of elements, then returns a new array containing the return values of the merger function f.
    <F, G> SafeArray<G>
    SafeArray.merge(SafeArray<F> a, BiFunction<? super E,? super F,? extends G> f)
    Between this array and the provided array a, this applies the merger function f to each corresponding pair of elements, then returns a new array containing the return values of the merger function f.
    <F, G> SafeArray<G>
    SyncArray.merge(SafeArray<F> a, BiFunction<? super E,? super F,? extends G> f)
    Between this array and the provided array a, this applies the merger function f to each corresponding pair of elements, then returns a new array containing the return values of the merger function f.
    static <E> SafeArray<E>
    SafeArray.of(E... elements)
    Creates a new type-safe array from the provided array of elements.
    default SafeArray<E>
    SafeArray.prepend(SafeArray<? extends E> a)
    Prepends the provided array a to the front of this array, then returns the resulting array.
    static <E> SafeArray<E>
    SafeArray.referenceOf(SafeArray<E> a)
    Creates a new reference to the provided array a.
    static <E> SafeArray<E>
    SafeArray.referenceOf(E[] elements)
    Creates a new type-safe reference array from the provided array of elements.
    AtomicArray.resize(int size)
    Returns a resized array whose elements are mapped from that of this array's elements.
    FastArray.resize(int size)
    Returns a resized array whose elements are mapped from that of this array's elements.
    SafeArray.resize(int size)
    Returns a resized array whose elements are mapped from that of this array's elements.
    SyncArray.resize(int size)
    Returns a resized array whose elements are mapped from that of this array's elements.
    AtomicArray.subArray(int s, int e)
    Returns a sub-array of this array which represents a portion of this array between the range of [s, e).
    FastArray.subArray(int s, int e)
    Returns a sub-array of this array which represents a portion of this array between the range of [s, e).
    SafeArray.subArray(int s, int e)
    Returns a sub-array of this array which represents a portion of this array between the range of [s, e).
    SyncArray.subArray(int s, int e)
    Returns a sub-array of this array which represents a portion of this array between the range of [s, e).
    static <E> SafeArray<E>
    SafeArray.syncCopyOf(SafeArray<? extends E> a)
    Creates a new thread-safe copy of the provided array a.
    static <E> SafeArray<E>
    SafeArray.syncOf(E... elements)
    Creates a new synchronized array from the provided array of elements.
    Methods in civitas.celestis.util.array with parameters of type SafeArray
    Modifier and Type
    Method
    Description
    default SafeArray<E>
    SafeArray.append(SafeArray<? extends E> a)
    Append the provided array a to the end of this array, then returns the resulting array.
    static <E> AtomicArray<E>
    SafeArray.atomicCopyOf(SafeArray<? extends E> a)
    Creates a new atomic copy of the provided array a.
    static <E> SafeArray<E>
    SafeArray.copyOf(SafeArray<? extends E> a)
    Creates a new thread-unsafe copy of the provided array a.
    <F, G> SafeArray<G>
    AtomicArray.merge(SafeArray<F> a, BiFunction<? super E,? super F,? extends G> f)
    Between this array and the provided array a, this applies the merger function f to each corresponding pair of elements, then returns a new array containing the return values of the merger function f.
    <F, G> SafeArray<G>
    FastArray.merge(SafeArray<F> a, BiFunction<? super E,? super F,? extends G> f)
    Between this array and the provided array a, this applies the merger function f to each corresponding pair of elements, then returns a new array containing the return values of the merger function f.
    <F, G> SafeArray<G>
    SafeArray.merge(SafeArray<F> a, BiFunction<? super E,? super F,? extends G> f)
    Between this array and the provided array a, this applies the merger function f to each corresponding pair of elements, then returns a new array containing the return values of the merger function f.
    <F, G> SafeArray<G>
    SyncArray.merge(SafeArray<F> a, BiFunction<? super E,? super F,? extends G> f)
    Between this array and the provided array a, this applies the merger function f to each corresponding pair of elements, then returns a new array containing the return values of the merger function f.
    default SafeArray<E>
    SafeArray.prepend(SafeArray<? extends E> a)
    Prepends the provided array a to the front of this array, then returns the resulting array.
    static <E> SafeArray<E>
    SafeArray.referenceOf(SafeArray<E> a)
    Creates a new reference to the provided array a.
    void
    AtomicArray.setRange(int s, int e, SafeArray<? extends E> a)
    Sets a sub-array of this array to the values of the provided sub-array a.
    void
    FastArray.setRange(int s, int e, SafeArray<? extends E> a)
    Sets a sub-array of this array to the values of the provided sub-array a.
    void
    SafeArray.setRange(int s, int e, SafeArray<? extends E> a)
    Sets a sub-array of this array to the values of the provided sub-array a.
    void
    SyncArray.setRange(int s, int e, SafeArray<? extends E> a)
    Sets a sub-array of this array to the values of the provided sub-array a.
    static <E> SafeArray<E>
    SafeArray.syncCopyOf(SafeArray<? extends E> a)
    Creates a new thread-safe copy of the provided array a.
    Constructors in civitas.celestis.util.array with parameters of type SafeArray
    Modifier
    Constructor
    Description
     
    AtomicArray(SafeArray<? extends E> a)
    Creates a new atomic array.
     
    FastArray(SafeArray<? extends E> a)
    Creates a new fast array.
     
    SyncArray(SafeArray<? extends E> a)
    Creates a new synchronized array.
  • Uses of SafeArray in civitas.celestis.util.tuple

    Methods in civitas.celestis.util.tuple that return SafeArray
    Modifier and Type
    Method
    Description
    default SafeArray<E>
    Tuple.safeArray()
    Returns a type-safe array containing the elements of this tuple in their proper order.