Package com.landawn.abacus.util
Class NoCachingNoUpdating.DisposableArray<T>
java.lang.Object
com.landawn.abacus.util.NoCachingNoUpdating.DisposableArray<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
NoCachingNoUpdating
,Cloneable
- Direct Known Subclasses:
NoCachingNoUpdating.DisposableObjArray
- Enclosing interface:
- NoCachingNoUpdating
@Beta
@SequentialOnly
@Stateful
public static class NoCachingNoUpdating.DisposableArray<T>
extends Object
implements NoCachingNoUpdating, Cloneable
One-off Object. No caching/saving in memory, No updating. To cache/save/update the Object, call
Depends on context, it should be okay to cache/save the elements from the array, but never save or cache the array itself.
clone()/copy()
.
Depends on context, it should be okay to cache/save the elements from the array, but never save or cache the array itself.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.landawn.abacus.util.NoCachingNoUpdating
NoCachingNoUpdating.DisposableArray<T>, NoCachingNoUpdating.DisposableBooleanArray, NoCachingNoUpdating.DisposableByteArray, NoCachingNoUpdating.DisposableCharArray, NoCachingNoUpdating.DisposableDeque<T>, NoCachingNoUpdating.DisposableDoubleArray, NoCachingNoUpdating.DisposableEntry<K,
V>, NoCachingNoUpdating.DisposableFloatArray, NoCachingNoUpdating.DisposableIntArray, NoCachingNoUpdating.DisposableLongArray, NoCachingNoUpdating.DisposableObjArray, NoCachingNoUpdating.DisposablePair<L, R>, NoCachingNoUpdating.DisposableShortArray, NoCachingNoUpdating.DisposableTriple<L, M, R>, NoCachingNoUpdating.Timed<T> -
Method Summary
Modifier and TypeMethodDescription<E extends Exception>
voidaccept
(Throwables.Consumer<? super T[], E> action) <R,
E extends Exception>
Rapply
(Throwables.Function<? super T[], ? extends R, E> func) T[]
clone()
static <T> NoCachingNoUpdating.DisposableArray<T>
<E extends Exception>
voidforEach
(Throwables.Consumer<? super T, E> action) get
(int index) int
length()
<A> A[]
toArray
(A[] target) <C extends Collection<T>>
CtoCollection
(IntFunction<? extends C> supplier) toList()
toSet()
toString()
static <T> NoCachingNoUpdating.DisposableArray<T>
wrap
(T[] a)
-
Method Details
-
create
-
wrap
- Type Parameters:
T
-- Parameters:
a
-- Returns:
-
get
- Parameters:
index
-- Returns:
-
length
public int length()- Returns:
-
toArray
public <A> A[] toArray(A[] target) - Type Parameters:
A
-- Parameters:
target
-- Returns:
-
clone
- Returns:
-
toList
- Returns:
-
toSet
- Returns:
-
toCollection
- Type Parameters:
C
-- Parameters:
supplier
-- Returns:
-
forEach
- Parameters:
action
-- Throws:
E extends Exception
-
apply
public <R,E extends Exception> R apply(Throwables.Function<? super T[], ? extends R, throws EE> func) - Type Parameters:
R
-- Parameters:
func
-- Returns:
- Throws:
E extends Exception
-
accept
- Parameters:
action
-- Throws:
E extends Exception
-
join
- Parameters:
delimiter
-- Returns:
-
join
- Parameters:
delimiter
-prefix
-suffix
-- Returns:
-
toString
-