- All Superinterfaces:
PsyLengthy,PsyObject
- All Known Subinterfaces:
PsyFormalQueue<T>
- All Known Implementing Classes:
PsyBlockingQueue
The representation of
bounded, a type of a container with bounded capacity.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContextActionContext action of thecapacityoperator.static final ContextActionContext action of theisfulloperator.Fields inherited from interface coneforest.psylla.core.PsyLengthy
PSY_ISEMPTY, PSY_LENGTHFields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TONAME, PSY_TOSTRING, PSY_TYPE -
Method Summary
Modifier and TypeMethodDescriptionintcapacity()Returns the capacity of this container.default booleanisFull()Returns a boolean indicating whether this container is full.default PsyIntegerReturns theintegercapacity of this container.default PsyBooleanReturns abooleanindicating whether this container is full.Methods inherited from interface coneforest.psylla.core.PsyLengthy
isEmpty, length, psyIsEmpty, psyLengthMethods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
-
Field Details
-
PSY_CAPACITY
Context action of thecapacityoperator. -
PSY_ISFULL
Context action of theisfulloperator.
-
-
Method Details
-
capacity
int capacity()Returns the capacity of this container.- Returns:
- the capacity of this container.
-
psyCapacity
Returns theintegercapacity of this container.- Returns:
- the
integercapacity of this container.
-
isFull
default boolean isFull()Returns a boolean indicating whether this container is full.- Returns:
trueif this container is full, andfalseotherwise.
-
psyIsFull
Returns abooleanindicating whether this container is full.- Returns:
- the
booleantrueif this container is full, and thebooleanfalseotherwise.
-