jcreek.util.selection
Class SelectionSet

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractSet
          extended byjava.util.HashSet
              extended byjcreek.util.selection.SelectionSet
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.io.Serializable, java.util.Set

public class SelectionSet
extends java.util.HashSet

See Also:
Serialized Form

Constructor Summary
SelectionSet()
           
 
Method Summary
 boolean add(java.lang.Object ob)
          Adds an object to the set, returns true if the object did not already exist in the set, false if it did.
 void addSelectionChangeListener(SelectionChangeListener listener)
           
 void clear()
          Clears the contents of the set and sets it to empty.
 boolean remove(java.lang.Object ob)
          Removes an object from the set.
 void removeSelectionChangeListener(SelectionChangeListener listener)
           
 
Methods inherited from class java.util.HashSet
clone, contains, isEmpty, iterator, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

SelectionSet

public SelectionSet()
Method Detail

add

public boolean add(java.lang.Object ob)
Adds an object to the set, returns true if the object did not already exist in the set, false if it did.


remove

public boolean remove(java.lang.Object ob)
Removes an object from the set. Returns true if the object existed in the set, false if not.


clear

public void clear()
Clears the contents of the set and sets it to empty.


addSelectionChangeListener

public void addSelectionChangeListener(SelectionChangeListener listener)

removeSelectionChangeListener

public void removeSelectionChangeListener(SelectionChangeListener listener)


Created at IDI, NTNU by the Artificial Intelligence and Learning group