Package com.landawn.abacus.util
Class NoCachingNoUpdating.DisposableEntry<K,V>
java.lang.Object
com.landawn.abacus.util.NoCachingNoUpdating.DisposableEntry<K,V>
- Type Parameters:
K
- the key typeV
- the value type
- All Implemented Interfaces:
NoCachingNoUpdating
,Map.Entry<K,
V>
- Enclosing interface:
- NoCachingNoUpdating
@Beta
@SequentialOnly
@Stateful
public abstract static class NoCachingNoUpdating.DisposableEntry<K,V>
extends Object
implements Map.Entry<K,V>, NoCachingNoUpdating
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
clone()/copy()
.
Depends on context, it should be okay to cache/save the elements from the array, but never save or cache the
Entry
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> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<E extends Exception>
voidaccept
(Throwables.BiConsumer<? super K, ? super V, E> action) <E extends Exception>
voidaccept
(Throwables.Consumer<? super NoCachingNoUpdating.DisposableEntry<K, V>, E> action) <R,
E extends Exception>
Rapply
(Throwables.BiFunction<? super K, ? super V, R, E> func) <R,
E extends Exception>
Rapply
(Throwables.Function<? super NoCachingNoUpdating.DisposableEntry<K, V>, R, E> func) copy()
Deprecated.UnsupportedOperationExceptiontoString()
static <K,
V> NoCachingNoUpdating.DisposableEntry<K, V>
-
Constructor Details
-
DisposableEntry
public DisposableEntry()
-
-
Method Details
-
wrap
- Type Parameters:
K
- the key typeV
- the value type- Parameters:
entry
-- Returns:
-
setValue
Deprecated.UnsupportedOperationExceptionSets the value.- Specified by:
setValue
in interfaceMap.Entry<K,
V> - Parameters:
value
-- Returns:
- Throws:
UnsupportedOperationException
- the unsupported operation exception
-
copy
-
apply
public <R,E extends Exception> R apply(Throwables.Function<? super NoCachingNoUpdating.DisposableEntry<K, V>, throws ER, E> func) - Throws:
E extends Exception
-
apply
public <R,E extends Exception> R apply(Throwables.BiFunction<? super K, ? super V, throws ER, E> func) - Throws:
E extends Exception
-
accept
public <E extends Exception> void accept(Throwables.Consumer<? super NoCachingNoUpdating.DisposableEntry<K, V>, throws EE> action) - Throws:
E extends Exception
-
accept
public <E extends Exception> void accept(Throwables.BiConsumer<? super K, ? super V, throws EE> action) - Throws:
E extends Exception
-
toString
-