Package it.unimi.dsi.fastutil.bytes
Class Byte2BooleanFunctions.UnmodifiableFunction
java.lang.Object
it.unimi.dsi.fastutil.bytes.AbstractByte2BooleanFunction
it.unimi.dsi.fastutil.bytes.Byte2BooleanFunctions.UnmodifiableFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction,it.unimi.dsi.fastutil.Function<Byte,,Boolean> Serializable,Function<Byte,,Boolean> IntPredicate
- Direct Known Subclasses:
Byte2BooleanMaps.UnmodifiableMap
- Enclosing class:
Byte2BooleanFunctions
public static class Byte2BooleanFunctions.UnmodifiableFunction
extends AbstractByte2BooleanFunction
implements Serializable
An unmodifiable wrapper class for functions.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.bytes.Byte2BooleanFunctionFields inherited from class it.unimi.dsi.fastutil.bytes.AbstractByte2BooleanFunction
defRetValue -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnmodifiableFunction(it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction f) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(byte k) booleanvoiddefaultReturnValue(boolean defRetValue) booleanbooleanget(byte k) Deprecated.Please use the corresponding type-specific method instead.booleangetOrDefault(byte k, boolean defaultValue) getOrDefault(Object k, Boolean defaultValue) Deprecated.Please use the corresponding type-specific method instead.inthashCode()booleanput(byte k, boolean v) Deprecated.Please use the corresponding type-specific method instead.booleanremove(byte k) Deprecated.Please use the corresponding type-specific method instead.intsize()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, containsKey, testMethods inherited from interface it.unimi.dsi.fastutil.Function
applyMethods inherited from interface java.util.function.IntPredicate
and, negate, or
-
Field Details
-
function
protected final it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction function
-
-
Constructor Details
-
UnmodifiableFunction
protected UnmodifiableFunction(it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction f)
-
-
Method Details
-
size
public int size() -
defaultReturnValue
public boolean defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.bytes.Byte2BooleanFunction- Overrides:
defaultReturnValuein classAbstractByte2BooleanFunction
-
defaultReturnValue
public void defaultReturnValue(boolean defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.bytes.Byte2BooleanFunction- Overrides:
defaultReturnValuein classAbstractByte2BooleanFunction
-
containsKey
public boolean containsKey(byte k) - Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.bytes.Byte2BooleanFunction
-
put
public boolean put(byte k, boolean v) - Specified by:
putin interfaceit.unimi.dsi.fastutil.bytes.Byte2BooleanFunction
-
get
public boolean get(byte k) - Specified by:
getin interfaceit.unimi.dsi.fastutil.bytes.Byte2BooleanFunction
-
getOrDefault
public boolean getOrDefault(byte k, boolean defaultValue) - Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.bytes.Byte2BooleanFunction
-
remove
public boolean remove(byte k) - Specified by:
removein interfaceit.unimi.dsi.fastutil.bytes.Byte2BooleanFunction
-
clear
public void clear() -
put
Deprecated.Please use the corresponding type-specific method instead. -
get
Deprecated.Please use the corresponding type-specific method instead. -
getOrDefault
Deprecated.Please use the corresponding type-specific method instead. -
remove
Deprecated.Please use the corresponding type-specific method instead. -
hashCode
public int hashCode() -
equals
-
toString
-