- java.lang.Object
-
- java.util.AbstractCollection<E>
-
-
-
Method Summary
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
clear, containsAll, isEmpty, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Set
clear, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
-
Methods inherited from interface java.lang.Iterable
forEach
-
-
Constructor Detail
-
PlainSet
public PlainSet()
-
Method Detail
-
size
public int size()
- Specified by:
size
in interface java.util.Collection<E>
- Specified by:
size
in interface java.util.Set<E>
- Specified by:
size
in class java.util.AbstractCollection<E>
-
add
public boolean add(E o)
- Specified by:
add
in interface java.util.Collection<E>
- Specified by:
add
in interface java.util.Set<E>
- Overrides:
add
in class java.util.AbstractCollection<E>