coins.backend.util
クラス HashNumberSet

java.lang.Object
  |
  +--coins.backend.util.HashNumberSet
すべての実装インタフェース:
NumberSet

public class HashNumberSet
extends java.lang.Object
implements NumberSet

Set of small integers represented in hash table.


入れ子クラスの概要
static class HashNumberSet.Iterator
           
 
クラス coins.backend.util.NumberSet から継承した入れ子クラス
 
コンストラクタの概要
HashNumberSet(int max)
          Create a set of numbers which is supposed to be less than max
 
メソッドの概要
 void add(int x)
          Add number x to set.
 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 contents of set.
 java.lang.Object clone()
          Return copy of the object.
 boolean contains(int x)
          Return true if x is in the set.
 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.
 NumberSet.Iterator iterator()
          Enumerate all members.
 void remove(int x)
          Remove number x from set.
 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.
 int tableSize()
           
 void toArray(int[] a)
          Convert to array
 
クラス java.lang.Object から継承したメソッド
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

HashNumberSet

public HashNumberSet(int max)
Create a set of numbers which is supposed to be less than max

メソッドの詳細

size

public int size()
Return the number of elements.

定義:
インタフェース NumberSet 内の size

tableSize

public int tableSize()

clear

public void clear()
Clear contents of set.

定義:
インタフェース NumberSet 内の clear

add

public void add(int x)
Add number x to set.

定義:
インタフェース NumberSet 内の add

addAll

public void addAll(NumberSet x)
Add all elements of another NumberSet x to this set.

定義:
インタフェース NumberSet 内の addAll

addAllTo

public void addAllTo(NumberSet x)
Add all elements of this set to another NumberSet x.

定義:
インタフェース NumberSet 内の addAllTo

remove

public void remove(int x)
Remove number x from set.

定義:
インタフェース NumberSet 内の remove

removeAll

public void removeAll(NumberSet x)
Remove all elements of another NumberSet x from this set.

定義:
インタフェース NumberSet 内の removeAll

removeAllFrom

public void removeAllFrom(NumberSet x)
Remove all elements of this set from another NumberSet x.

定義:
インタフェース NumberSet 内の removeAllFrom

contains

public boolean contains(int x)
Return true if x is in the set.

定義:
インタフェース NumberSet 内の contains

iterator

public NumberSet.Iterator iterator()
Enumerate all members.

定義:
インタフェース NumberSet 内の iterator

toArray

public void toArray(int[] a)
Convert to array

定義:
インタフェース NumberSet 内の toArray

copy

public void copy(NumberSet x)
Copy another NumberSet x to this object.

定義:
インタフェース NumberSet 内の copy

equals

public boolean equals(java.lang.Object x)
Return true if x is same as this set.

定義:
インタフェース NumberSet 内の equals
オーバーライド:
クラス java.lang.Object 内の equals

clone

public java.lang.Object clone()
Return copy of the object.

定義:
インタフェース NumberSet 内の clone
オーバーライド:
クラス java.lang.Object 内の clone