Interface PrimitiveBeanCollection<T>
- Type Parameters:
T
- primitive-type stored in the collection, if necessary, in boxed form e.g. Integer, Double etc.
- All Superinterfaces:
Iterable<T>
- All Known Implementing Classes:
DoubleList
,DoubleSet
,IntegerList
,IntegerSet
,StringList
,StringSet
A bean that provides a collection of primitive-types or
String
s.- Author:
- Owen Feehan
-
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
add
Add an element to the collection.- Parameters:
element
- the element to add.
-
contains
Whether the collection contains a particular element?- Parameters:
element
- the element to search for- Returns:
- true iff the collection contains the element.
-
isEmpty
boolean isEmpty()Whether the collection is empty or not.- Returns:
- true iff the collection contains zero elements.
-