Interface jgl.Set
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface jgl.Set

public interface Set
extends Object
extends Container
Set is the interface that is implemented by all of the Java Generic Library sets.

See Also:
HashSet, OrderedSet

Method Index

 o get(Object)
Return the first object that matches the given object, or null if no match exists.
 o put(Object)
If the object doesn't exist, add the object and return null, otherwise replace the first object that matches and return the old object.
 o remove(Object)
Remove all objects that match the given object.

Methods

 o get
  public abstract Object get(Object object)
Return the first object that matches the given object, or null if no match exists.
Parameters:
object - The object to match against.
See Also:
put
 o put
  public abstract Object put(Object object)
If the object doesn't exist, add the object and return null, otherwise replace the first object that matches and return the old object.
Parameters:
object - The object to add.
See Also:
get
 o remove
  public abstract Object remove(Object key)
Remove all objects that match the given object.
Parameters:
object - The object to match for removals
Returns:
the object removed, or null if the object was not found.

All Packages  Class Hierarchy  This Package  Previous  Next  Index