|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object | +--coins.backend.util.BitMapSet
Set of small integers represented in bit vector.
| 入れ子クラスの概要 | |
static class |
BitMapSet.Iterator
|
| クラス coins.backend.util.NumberSet から継承した入れ子クラス |
|
| フィールドの概要 | |
(パッケージプライベート) static int |
WORDSIZE
|
| コンストラクタの概要 | |
BitMapSet()
Create empty set. |
|
BitMapSet(int size)
Create set of given size |
|
| メソッドの概要 | |
void |
add(int x)
Add integer x. |
void |
addAll(NumberSet x)
Add all elements of another NumberSet x to this set. |
void |
addAllTo(NumberSet x)
Add all elements of this set to another NumberSet x. |
void |
clear()
Clear set |
java.lang.Object |
clone()
Return copy of the object. |
boolean |
contains(int x)
Return true if set has the integer x in it. |
void |
copy(NumberSet x)
Copy another NumberSet x to this object. |
boolean |
equals(java.lang.Object x)
Return true if x is same as this set. |
boolean |
exist(int x)
Return true if set has the integer x in it. |
NumberSet.Iterator |
iterator()
Enumerate all members. |
void |
join(BitMapSet x)
Join operation. |
static void |
main(java.lang.String[] argv)
Unit test driver |
void |
meet(BitMapSet x)
Meet operation. |
int |
nextElement(int from)
Return an element greater than or equal to 'from'. |
void |
remove(int x)
Remove integer x. |
void |
removeAll(NumberSet x)
Remove all elements of another NumberSet x from this set. |
void |
removeAllFrom(NumberSet x)
Remove all elements of this set from another NumberSet x. |
int |
size()
Return the number of elements. |
void |
subtract(BitMapSet x)
Subtract operation. |
void |
toArray(int[] a)
Convert to array |
java.lang.String |
toString()
|
| クラス java.lang.Object から継承したメソッド |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
static final int WORDSIZE
| コンストラクタの詳細 |
public BitMapSet()
public BitMapSet(int size)
| メソッドの詳細 |
public int size()
NumberSet 内の sizepublic void clear()
NumberSet 内の clearpublic void add(int x)
NumberSet 内の addpublic void remove(int x)
NumberSet 内の removepublic boolean exist(int x)
public boolean contains(int x)
NumberSet 内の containspublic void copy(NumberSet x)
NumberSet 内の copypublic void addAll(NumberSet x)
NumberSet 内の addAllpublic void addAllTo(NumberSet x)
NumberSet 内の addAllTopublic void join(BitMapSet x)
public void meet(BitMapSet x)
public void removeAll(NumberSet x)
NumberSet 内の removeAllpublic void removeAllFrom(NumberSet x)
NumberSet 内の removeAllFrompublic void subtract(BitMapSet x)
public int nextElement(int from)
public NumberSet.Iterator iterator()
NumberSet 内の iteratorpublic void toArray(int[] a)
NumberSet 内の toArraypublic boolean equals(java.lang.Object x)
NumberSet 内の equalsjava.lang.Object 内の equalspublic java.lang.Object clone()
NumberSet の記述:
NumberSet 内の clonejava.lang.Object 内の clonepublic java.lang.String toString()
java.lang.Object 内の toStringpublic static void main(java.lang.String[] argv)
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||