Class UnsignedLongBitmap
- java.lang.Object
-
- org.opendaylight.controller.cluster.datastore.utils.UnsignedLongBitmap
-
- All Implemented Interfaces:
org.opendaylight.yangtools.concepts.Immutable,org.opendaylight.yangtools.concepts.MutationBehaviour<org.opendaylight.yangtools.concepts.Immutable>
@Beta public abstract class UnsignedLongBitmap extends Object implements org.opendaylight.yangtools.concepts.Immutable
A more efficient equivalent ofImmutableMap<UnsignedLong, Boolean>.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static @NonNull UnsignedLongBitmapcopyOf(Map<com.google.common.primitives.UnsignedLong,Boolean> map)abstract booleanequals(Object obj)abstract inthashCode()abstract booleanisEmpty()@NonNull HashMap<com.google.common.primitives.UnsignedLong,Boolean>mutableCopy()static @NonNull UnsignedLongBitmapof()static @NonNull UnsignedLongBitmapof(long keyBits, boolean value)static @NonNull UnsignedLongBitmapreadFrom(@NonNull DataInput in, int size)abstract intsize()StringtoString()voidwriteEntriesTo(@NonNull DataOutput out, int size)
-
-
-
Method Detail
-
of
public static @NonNull UnsignedLongBitmap of()
-
of
public static @NonNull UnsignedLongBitmap of(long keyBits, boolean value)
-
copyOf
public static @NonNull UnsignedLongBitmap copyOf(Map<com.google.common.primitives.UnsignedLong,Boolean> map)
-
isEmpty
public abstract boolean isEmpty()
-
size
public abstract int size()
-
mutableCopy
public final @NonNull HashMap<com.google.common.primitives.UnsignedLong,Boolean> mutableCopy()
-
readFrom
public static @NonNull UnsignedLongBitmap readFrom(@NonNull DataInput in, int size) throws IOException
- Throws:
IOException
-
writeEntriesTo
public void writeEntriesTo(@NonNull DataOutput out, int size) throws IOException
- Throws:
IOException
-
hashCode
public abstract int hashCode()
Implementations of this method return a deterministic value.
-
-