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 theRangeSet
interface, but allows converting to and from it. Internal implementation takes advantage of knowing thatUnsignedLong
is 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 void
add(long longBits)
void
add(UnsignedLong value)
boolean
contains(long longBits)
boolean
contains(UnsignedLong value)
UnsignedLongRangeSet
copy()
static UnsignedLongRangeSet
create()
static UnsignedLongRangeSet
create(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()
-
-