Package org.zkoss.util
Class CollectionsX.OneCollection<E>
java.lang.Object
java.util.AbstractCollection<E>
org.zkoss.util.CollectionsX.OneCollection<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>
- Enclosing class:
- CollectionsX
A collection that contains only one element.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
OneCollection
-
-
Method Details
-
size
public final int size()- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein classAbstractCollection<E>
-
iterator
- Specified by:
iteratorin interfaceCollection<E>- Specified by:
iteratorin interfaceIterable<E>- Specified by:
iteratorin classAbstractCollection<E>
-