| Modifier and Type | Field and Description |
|---|---|
| protected static final int | |
| protected long[] | bits
The actual data bits |
| protected static final int | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private static final long | |
| public Object | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public void | |
| public boolean | |
| public int | lengthInLongWords()
return how much space is being used by the bits array not how many actually have member bits on. |
| public boolean | |
| public int | |
| private final int | |
| public static BitSet | |
| public static BitSet | |
| public static BitSet | |
| public static BitSet | |
| public BitSet | |
| public void | |
| public void | |
| private void | |
| public int | |
| public int[] | |
| public long[] | |
| public String | |
| public String | |
| private static final int |
| BITS | back to summary |
|---|---|
| protected static final int BITS | |
| bits | back to summary |
|---|---|
| protected long[] bits The actual data bits | |
| LOG_BITS | back to summary |
|---|---|
| protected static final int LOG_BITS | |
| MOD_MASK | back to summary |
|---|---|
| protected static final int MOD_MASK | |
| BitSet | back to summary |
|---|---|
| public BitSet() Construct a bitset of size one word (64 bits) | |
| BitSet | back to summary |
|---|---|
| public BitSet(long[] bits_) Construction from a static array of longs | |
| BitSet | back to summary |
|---|---|
| public BitSet(List<Integer> items) Construction from a list of integers | |
| BitSet | back to summary |
|---|---|
| public BitSet(int nbits) Construct a bitset given the size
| |
| add | back to summary |
|---|---|
| public void add(int el) or this element into this set (grow as necessary to accommodate) | |
| bitMask | back to summary |
|---|---|
| private static final long bitMask(int bitNumber) | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| growToInclude | back to summary |
|---|---|
| public void growToInclude(int bit) Grows the set to a larger number of bits.
| |
| isNil | back to summary |
|---|---|
| public boolean isNil() | |
| lengthInLongWords | back to summary |
|---|---|
| public int lengthInLongWords() return how much space is being used by the bits array not how many actually have member bits on. | |
| member | back to summary |
|---|---|
| public boolean member(int el) | |
| numBits | back to summary |
|---|---|
| public int numBits() | |
| numWordsToHold | back to summary |
|---|---|
| private final int numWordsToHold(int el) | |
| of | back to summary |
|---|---|
| public static BitSet of(int el) | |
| of | back to summary |
|---|---|
| public static BitSet of(int a, int b) | |
| of | back to summary |
|---|---|
| public static BitSet of(int a, int b, int c) | |
| of | back to summary |
|---|---|
| public static BitSet of(int a, int b, int c, int d) | |
| or | back to summary |
|---|---|
| public BitSet or(BitSet a) return this | a in a new set | |
| orInPlace | back to summary |
|---|---|
| public void orInPlace(BitSet a) | |
| remove | back to summary |
|---|---|
| public void remove(int el) | |
| setSize | back to summary |
|---|---|
| private void setSize(int nwords) Sets the size of a set.
| |
| size | back to summary |
|---|---|
| public int size() | |
| toArray | back to summary |
|---|---|
| public int[] toArray() Is this contained within a? | |
| toPackedArray | back to summary |
|---|---|
| public long[] toPackedArray() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| toString | back to summary |
|---|---|
| public String toString(String[] tokenNames) | |
| wordNumber | back to summary |
|---|---|
| private static final int wordNumber(int bit) | |