Class UnsignedLongBitmap
java.lang.Object
org.opendaylight.controller.cluster.datastore.utils.UnsignedLongBitmap
- All Implemented Interfaces:
Immutable
A more efficient equivalent of
ImmutableMap<UnsignedLong, Boolean>
.-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull UnsignedLongBitmap
copyOf
(Map<UnsignedLong, Boolean> map) abstract boolean
abstract int
hashCode()
abstract boolean
isEmpty()
final @NonNull HashMap
<UnsignedLong, Boolean> static @NonNull UnsignedLongBitmap
of()
static @NonNull UnsignedLongBitmap
of
(long keyBits, boolean value) static @NonNull UnsignedLongBitmap
abstract int
size()
final String
toString()
void
writeEntriesTo
(@NonNull DataOutput out, int size)
-
Method Details
-
of
-
of
-
copyOf
-
isEmpty
public abstract boolean isEmpty() -
size
public abstract int size() -
mutableCopy
-
readFrom
public static @NonNull UnsignedLongBitmap readFrom(@NonNull DataInput in, int size) throws IOException - Throws:
IOException
-
writeEntriesTo
- Throws:
IOException
-
hashCode
public abstract int hashCode()Implementations of this method return a deterministic value.
-
equals
-
toString
-