public abstract class AbstractByte2BooleanFunction
extends java.lang.Object
implements it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction, java.io.Serializable
This class handles directly a default return
value (including methods to access
it). Instances of classes inheriting from this class have just to return
defRetValue to denote lack of a key in type-specific methods. The value
is serialized.
Implementing subclasses have just to provide type-specific get(),
type-specific containsKey(), and size() methods.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
defRetValue
The default return value for
get(), put() and
remove(). |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractByte2BooleanFunction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
defaultReturnValue() |
void |
defaultReturnValue(boolean rv) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, containsKey, containsKey, get, get, getOrDefault, getOrDefault, put, put, remove, remove, testprotected boolean defRetValue
get(), put() and
remove().public void defaultReturnValue(boolean rv)
defaultReturnValue in interface it.unimi.dsi.fastutil.bytes.Byte2BooleanFunctionpublic boolean defaultReturnValue()
defaultReturnValue in interface it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction