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

public interface PrimitiveBeanCollection<T> extends Iterable<T>
A bean that provides a collection of primitive-types or Strings.
Author:
Owen Feehan
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(T element)
    Add an element to the collection.
    boolean
    contains(T element)
    Whether the collection contains a particular element?
    boolean
    Whether the collection is empty or not.

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Method Details

    • add

      void add(T element)
      Add an element to the collection.
      Parameters:
      element - the element to add.
    • contains

      boolean contains(T element)
      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.