public interface Set<T>
A Set may have an infinite number of elements.
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(T element)
Returns whether this set contains the given element.
|
boolean contains(T element)
element - The element to test.true if the given element is an element of this set, false otherwise.