coins.backend.util
インタフェース NumberSet

既知の実装クラスの一覧:
BitMapSet, HashNumberSet, VectorSet

public interface NumberSet

Interface for set of nonnegative integers.


入れ子クラスの概要
static interface NumberSet.Iterator
           
 
メソッドの概要
 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.
 void toArray(int[] a)
          Set elements to array a.
 

メソッドの詳細

size

public int size()
Return the number of elements.


clear

public void clear()
Clear contents of set.


add

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


addAll

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


addAllTo

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


remove

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


removeAll

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


removeAllFrom

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


contains

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


iterator

public NumberSet.Iterator iterator()
Enumerate all members.


toArray

public void toArray(int[] a)
Set elements to array a.


copy

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


equals

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

オーバーライド:
クラス java.lang.Object 内の equals

clone

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