Class UnsignedLongBitmap
java.lang.Object
org.opendaylight.controller.cluster.raft.spi.UnsignedLongBitmap
- All Implemented Interfaces:
Immutable
A more efficient equivalent of
ImmutableMap<UnsignedLong, Boolean>.-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull UnsignedLongBitmapcopyOf(Map<UnsignedLong, Boolean> map) abstract booleanabstract inthashCode()abstract booleanisEmpty()final @NonNull HashMap<UnsignedLong, Boolean> static @NonNull UnsignedLongBitmapof()static @NonNull UnsignedLongBitmapof(long keyBits, boolean value) static @NonNull UnsignedLongBitmapabstract intsize()final StringtoString()voidwriteEntriesTo(@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
-