public class Pow2LengthBitSetRange extends Object
BitVector range with a power of 2 length, where the inclusive start has
all the level lowest bits set to zero, and the lowest level
bits of the inclusive end are all set to one. A single point is represented
as a bit set with level=0.
Caveat: As soon as the underlying bit set is modified, an instance and all its clones should be considered invalid. We have to make this compromise for performance reasons.
| Constructor and Description |
|---|
Pow2LengthBitSetRange(BitVector start,
int level) |
| Modifier and Type | Method and Description |
|---|---|
Pow2LengthBitSetRange |
clone() |
boolean |
encloses(Pow2LengthBitSetRange other) |
boolean |
equals(Object obj) |
int |
getLevel() |
BitVector |
getStart() |
int |
hashCode() |
static int |
levelSum(List<Pow2LengthBitSetRange> pow2LengthOrthotope) |
String |
toString() |
public Pow2LengthBitSetRange(BitVector start, int level)
start - must have all the lowest level bits clearedlevel - non-negativepublic BitVector getStart()
public int getLevel()
public static int levelSum(List<Pow2LengthBitSetRange> pow2LengthOrthotope)
public Pow2LengthBitSetRange clone()
public boolean encloses(Pow2LengthBitSetRange other)
Copyright © 2014. All Rights Reserved.