Package com.landawn.abacus.util
Class NoCachingNoUpdating.DisposableBooleanArray
java.lang.Object
com.landawn.abacus.util.NoCachingNoUpdating.DisposableBooleanArray
- All Implemented Interfaces:
NoCachingNoUpdating
,Cloneable
- Enclosing interface:
- NoCachingNoUpdating
@Beta
@SequentialOnly
@Stateful
public static class NoCachingNoUpdating.DisposableBooleanArray
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 boolean[], E> action) <R,
E extends Exception>
Rapply
(Throwables.Function<? super boolean[], ? extends R, E> func) Boolean[]
box()
boolean[]
clone()
create
(int len) <E extends Exception>
voidforEach
(Throwables.BooleanConsumer<E> action) boolean
get
(int index) int
length()
<C extends Collection<Boolean>>
CtoCollection
(IntFunction<? extends C> supplier) toList()
toString()
wrap
(boolean[] a)
-
Method Details
-
create
- Parameters:
len
-- Returns:
-
wrap
- Parameters:
a
-- Returns:
-
get
public boolean get(int index) - Parameters:
index
-- Returns:
-
length
public int length()- Returns:
-
clone
public boolean[] clone()- Returns:
-
box
- Returns:
-
toList
- Returns:
-
toCollection
- Type Parameters:
C
-- Parameters:
supplier
-- Returns:
-
forEach
- Type Parameters:
E
-- Parameters:
action
-- Throws:
E
-
apply
public <R,E extends Exception> R apply(Throwables.Function<? super boolean[], ? extends R, throws EE> func) - Type Parameters:
R
-E
-- Parameters:
func
-- Returns:
- Throws:
E
-
accept
- Type Parameters:
E
-- Parameters:
action
-- Throws:
E
-
join
- Parameters:
delimiter
-- Returns:
-
join
- Parameters:
delimiter
-prefix
-suffix
-- Returns:
-
toString
-