- 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 ContextAction
Context action of thecapacity
operator.static final ContextAction
Context action of theisfull
operator.Fields inherited from interface coneforest.psylla.core.PsyLengthy
PSY_ISEMPTY, PSY_LENGTH
Fields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TOSTRING, PSY_TOSTRINGBUFFER, PSY_TYPE
-
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, psyToString, psyToStringBuffer, psyType, toSyntaxString, typeName
-
Field Details
-
PSY_CAPACITY
Context action of thecapacity
operator. -
PSY_ISFULL
Context action of theisfull
operator.
-
-
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:
- a boolean indicating whether this container is full
-
psyIsFull
Returns aboolean
indicating whether this container is full.- Returns:
- a
boolean
indicating whether this container is full
-