Package java.util
Class TreeSet
boolean contains(Object o)
Overrides:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Returns true if this set contains the specified element. Implements interface method Set.contains.
Example
TreeSet set = new TreeSet();
set.add("value1");
set.add("value2");
if (set.contains("value1"))
Logger.log("This set contians the value: value1");
The example above checks if set contains the value1 string.