Interface PsyBounded

All Superinterfaces:
PsyLengthy, PsyObject
All Known Subinterfaces:
PsyFormalQueue<T>
All Known Implementing Classes:
PsyBlockingQueue

@Type("bounded") public interface PsyBounded extends PsyLengthy
The representation of bounded, a type of a container with bounded capacity.
  • Field Details

  • Method Details

    • capacity

      int capacity()
      Returns the capacity of this container.
      Returns:
      the capacity of this container.
    • psyCapacity

      default PsyInteger psyCapacity()
      Returns the integer capacity of this container.
      Returns:
      the integer capacity of this container.
    • isFull

      default boolean isFull()
      Returns a boolean indicating whether this container is full.
      Returns:
      true if this container is full, and false otherwise.
    • psyIsFull

      default PsyBoolean psyIsFull()
      Returns a boolean indicating whether this container is full.
      Returns:
      the boolean true if this container is full, and the boolean false otherwise.