Package coneforest.psylla.core
Interface PsyBounded
- All Superinterfaces:
PsyConvertableToName
,PsyConvertableToString
,PsyLengthy
,PsyObject
- All Known Subinterfaces:
PsyFormalQueue<T>
- All Known Implementing Classes:
PsyBlockingQueue
A representation of
bounded
, a type of a container with bounded
capacity.-
Field Summary
Fields inherited from interface coneforest.psylla.core.PsyLengthy
OPERATORS
-
Method Summary
Modifier and TypeMethodDescriptionint
capacity()
Returns the capacity of this container.default boolean
isFull()
Returns a boolean indicating whether this container is full.default PsyInteger
Returns theinteger
capacity of this container.default PsyBoolean
Returns aboolean
indicating whether this container is full.Methods inherited from interface coneforest.psylla.core.PsyLengthy
isEmpty, length, psyIsEmpty, psyLength
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
-
Method Details
-
capacity
int capacity()Returns the capacity of this container.- Returns:
- the capacity of this container.
-
psyCapacity
Returns theinteger
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, andfalse
otherwise.
-
psyIsFull
Returns aboolean
indicating whether this container is full.- Returns:
- the
boolean
true
if this container is full, and theboolean
false
otherwise.
-