public class ContextSet extends Object implements ContextSet, TaggedPersistent
| Constructor and Description |
|---|
ContextSet() |
ContextSet(ContextSet copy) |
ContextSet(int size) |
| Modifier and Type | Method and Description |
|---|---|
ContextSet |
and(ContextSet other) |
ContextSet |
clear(int bitIndex) |
boolean |
equals(Object o) |
ContextSet |
flip(int startIdx,
int endIdx) |
boolean |
get(int bitIndex) |
int |
hashCode() |
boolean |
intersects(ContextSet other) |
int |
nextSetBit(int fromIndex) |
ContextSet |
or(ContextSet set) |
static ContextSet |
read(TaggedDataInput in) |
static ContextSet |
remap(ContextSet orig,
Map<Integer,Integer> mapping) |
ContextSet |
set(int bitIndex) |
ContextSet |
set(int bitIndex,
boolean value) |
int |
size() |
String |
toString() |
void |
write(TaggedDataOutput out) |
public ContextSet()
public ContextSet(int size)
public ContextSet(ContextSet copy)
public static ContextSet remap(ContextSet orig, Map<Integer,Integer> mapping)
public boolean get(int bitIndex)
get in interface ContextSetpublic boolean intersects(ContextSet other)
intersects in interface ContextSetpublic int nextSetBit(int fromIndex)
nextSetBit in interface ContextSetpublic int size()
public ContextSet and(ContextSet other)
and in interface ContextSetpublic ContextSet clear(int bitIndex)
public ContextSet or(ContextSet set)
public ContextSet set(int bitIndex)
set in interface ContextSetpublic ContextSet set(int bitIndex, boolean value)
public ContextSet flip(int startIdx, int endIdx)
public void write(TaggedDataOutput out) throws IOException
write in interface TaggedPersistentIOExceptionpublic static ContextSet read(TaggedDataInput in) throws IOException
IOExceptionCopyright © 2024 OpenClover.org. All rights reserved.