Interface BoundedCollection<E>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isFull()
      Returns true if this collection is full and no new elements can be added.
      int maxSize()
      Gets the maximum size of the collection (the bound).
      • Methods inherited from interface java.util.Collection

        add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Method Detail

      • isFull

        boolean isFull()
        Returns true if this collection is full and no new elements can be added.
        Returns:
        true if the collection is full.
      • maxSize

        int maxSize()
        Gets the maximum size of the collection (the bound).
        Returns:
        the maximum number of elements the collection can hold.