Class UnsignedLongRangeSet
- java.lang.Object
-
- org.opendaylight.controller.cluster.datastore.utils.UnsignedLongRangeSet
-
- All Implemented Interfaces:
Mutable,MutationBehaviour<Mutable>
@Beta public final class UnsignedLongRangeSet extends Object implements Mutable
UtilityRangeSet-like class, specialized for holdingUnsignedLong. It does not directly implement theRangeSetinterface, but allows converting to and from it. Internal implementation takes advantage of knowing thatUnsignedLongis a discrete type and that it can be stored in a long.- Author:
- Robert Varga
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(long longBits)voidadd(UnsignedLong value)booleancontains(long longBits)booleancontains(UnsignedLong value)UnsignedLongRangeSetcopy()static UnsignedLongRangeSetcreate()static UnsignedLongRangeSetcreate(RangeSet<UnsignedLong> input)RangeSet<UnsignedLong>toImmutable()
-
-
-
Method Detail
-
create
public static UnsignedLongRangeSet create()
-
create
public static UnsignedLongRangeSet create(RangeSet<UnsignedLong> input)
-
toImmutable
public RangeSet<UnsignedLong> toImmutable()
-
add
public void add(long longBits)
-
add
public void add(UnsignedLong value)
-
contains
public boolean contains(UnsignedLong value)
-
contains
public boolean contains(long longBits)
-
copy
public UnsignedLongRangeSet copy()
-
-