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 SafeArrayModifier and TypeClassDescriptionclassAtomicArray<E>A type-safe array which stores atomic references as opposed to the values themselves.classFastArray<E>A basic type-safe array with no built-in synchronization or thread-safety measures.classSyncArray<E>A synchronized instance ofFastArray.Methods in civitas.celestis.util.array that return SafeArrayModifier and TypeMethodDescriptionAppend the provided arrayato 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>Creates a new thread-unsafe copy of the provided arraya.Tests each element of this array using the provided predicatef, collects all elements the predicate returnstrueto, then returns a new array containing only the filtered elements.static <E> SafeArray<E>Creates a new type-safe array from a stream of values.<F> SafeArray<F>Applies the provided mapper functionfto each element of this array, then returns a new array containing the return values of the functionf.<F> SafeArray<F>Applies the provided mapper functionfto each element of this array, then returns a new array containing the return values of the functionf.<F> SafeArray<F>Applies the provided mapper functionfto each element of this array, then returns a new array containing the return values of the functionf.<F> SafeArray<F>Applies the provided mapper functionfto each element of this array, then returns a new array containing the return values of the functionf.<F> SafeArray<F>DoubleArray.mapToObj(DoubleFunction<? extends F> f) Applies the provided mapper functionfto each element of this array, then returns a new array containing the return values of the functionf.<F> SafeArray<F>DoubleFastArray.mapToObj(DoubleFunction<? extends F> f) Applies the provided mapper functionfto each element of this array, then returns a new array containing the return values of the functionf.<F> SafeArray<F>FloatArray.mapToObj(FloatFunction<? extends F> f) Applies the provided mapper functionfto each element of this array, then returns a new array containing the return values of the functionf.<F> SafeArray<F>FloatFastArray.mapToObj(FloatFunction<? extends F> f) Applies the provided mapper functionfto each element of this array, then returns a new array containing the return values of the functionf.<F> SafeArray<F>IntArray.mapToObj(IntFunction<? extends F> f) Applies the provided mapper functionfto each element of this array, then returns a new array containing the return values of the functionf.<F> SafeArray<F>IntFastArray.mapToObj(IntFunction<? extends F> f) Applies the provided mapper functionfto each element of this array, then returns a new array containing the return values of the functionf.<F> SafeArray<F>LongArray.mapToObj(LongFunction<? extends F> f) Applies the provided mapper functionfto each element of this array, then returns a new array containing the return values of the functionf.<F> SafeArray<F>LongFastArray.mapToObj(LongFunction<? extends F> f) Applies the provided mapper functionfto each element of this array, then returns a new array containing the return values of the functionf.<F,G> SafeArray<G> AtomicArray.merge(SafeArray<F> a, BiFunction<? super E, ? super F, ? extends G> f) Between this array and the provided arraya, this applies the merger functionfto each corresponding pair of elements, then returns a new array containing the return values of the merger functionf.<F,G> SafeArray<G> FastArray.merge(SafeArray<F> a, BiFunction<? super E, ? super F, ? extends G> f) Between this array and the provided arraya, this applies the merger functionfto each corresponding pair of elements, then returns a new array containing the return values of the merger functionf.<F,G> SafeArray<G> SafeArray.merge(SafeArray<F> a, BiFunction<? super E, ? super F, ? extends G> f) Between this array and the provided arraya, this applies the merger functionfto each corresponding pair of elements, then returns a new array containing the return values of the merger functionf.<F,G> SafeArray<G> SyncArray.merge(SafeArray<F> a, BiFunction<? super E, ? super F, ? extends G> f) Between this array and the provided arraya, this applies the merger functionfto each corresponding pair of elements, then returns a new array containing the return values of the merger functionf.static <E> SafeArray<E>SafeArray.of(E... elements) Creates a new type-safe array from the provided array of elements.Prepends the provided arrayato 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 arraya.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 arraya.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 SafeArrayModifier and TypeMethodDescriptionAppend the provided arrayato 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 arraya.static <E> SafeArray<E>Creates a new thread-unsafe copy of the provided arraya.<F,G> SafeArray<G> AtomicArray.merge(SafeArray<F> a, BiFunction<? super E, ? super F, ? extends G> f) Between this array and the provided arraya, this applies the merger functionfto each corresponding pair of elements, then returns a new array containing the return values of the merger functionf.<F,G> SafeArray<G> FastArray.merge(SafeArray<F> a, BiFunction<? super E, ? super F, ? extends G> f) Between this array and the provided arraya, this applies the merger functionfto each corresponding pair of elements, then returns a new array containing the return values of the merger functionf.<F,G> SafeArray<G> SafeArray.merge(SafeArray<F> a, BiFunction<? super E, ? super F, ? extends G> f) Between this array and the provided arraya, this applies the merger functionfto each corresponding pair of elements, then returns a new array containing the return values of the merger functionf.<F,G> SafeArray<G> SyncArray.merge(SafeArray<F> a, BiFunction<? super E, ? super F, ? extends G> f) Between this array and the provided arraya, this applies the merger functionfto each corresponding pair of elements, then returns a new array containing the return values of the merger functionf.Prepends the provided arrayato 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 arraya.voidSets a sub-array of this array to the values of the provided sub-arraya.voidSets a sub-array of this array to the values of the provided sub-arraya.voidSets a sub-array of this array to the values of the provided sub-arraya.voidSets a sub-array of this array to the values of the provided sub-arraya.static <E> SafeArray<E>SafeArray.syncCopyOf(SafeArray<? extends E> a) Creates a new thread-safe copy of the provided arraya.Constructors in civitas.celestis.util.array with parameters of type SafeArray -
Uses of SafeArray in civitas.celestis.util.tuple
Methods in civitas.celestis.util.tuple that return SafeArray