Interface Set<AnyType>

All Superinterfaces:
Collection<AnyType>, java.lang.Iterable<AnyType>, java.io.Serializable
All Known Subinterfaces:
All Known Implementing Classes:
HashSet, TreeSet

public interface Set<AnyType>
extends Collection<AnyType>

Set interface.

Method Summary
 AnyType getMatch(AnyType x)
          This method is not part of standard Java 1.2.
Methods inherited from interface weiss.util.Collection
add, clear, contains, isEmpty, iterator, remove, size, toArray, toArray

Method Detail


AnyType getMatch(AnyType x)
This method is not part of standard Java 1.2. Like contains, it checks if x is in the set. If it is, it returns the reference to the matching object; otherwise it returns null.

x - the object to search for.
if contains(x) is false, the return value is null; otherwise, the return value is the object that causes contains(x) to return true.