T - the type of the memberpublic class SingletonSet<T> extends AbstractSet<T>
| Constructor and Description |
|---|
SingletonSet(T e) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object o) |
Iterator<T> |
iterator() |
int |
size() |
equals, hashCode, removeAlladd, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringpublic SingletonSet(T e)
public int size()
size in interface Collection<T>size in interface Set<T>size in class AbstractCollection<T>public boolean contains(Object o)
contains in interface Collection<T>contains in interface Set<T>contains in class AbstractCollection<T>Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.