Package coneforest.psylla.core
Interface PsyLengthy
-
- All Superinterfaces:
PsyConvertableToName,PsyConvertableToString,PsyObject
- All Known Subinterfaces:
PsyBounded,PsyContainer<T>,PsyFormalArray<T>,PsyFormalDict<V>,PsyFormalQueue<T>,PsyFormalSet<T>,PsyTextual
- All Known Implementing Classes:
PsyArray,PsyBitArray,PsyBitSet,PsyBlockingQueue,PsyCommand,PsyConfigDict,PsyDict,PsyErrorDict,PsyModule,PsyName,PsyNamespace,PsyProc,PsyRomanNumerals,PsySet,PsyString,PsySystemDict
public interface PsyLengthy extends PsyObject
A representation of Ψ-lengthy, a type of an object that has length in some sense. Ususally the length is the number of elements in the container.
-
-
Field Summary
Fields Modifier and Type Field Description static PsyOperator[]OPERATORS
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanisEmpty()Returns a boolean indicating if this container is empty (has zero length).intlength()Returns a length of this object.default PsyBooleanpsyIsEmpty()Returns a Ψ-booleanindicating if this container is empty (has zero length).default PsyIntegerpsyLength()Returns a Ψ-integerrepresenting the length of this object.-
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
-
-
-
-
Field Detail
-
OPERATORS
static final PsyOperator[] OPERATORS
-
-
Method Detail
-
length
int length()
Returns a length of this object.- Returns:
- a length.
-
isEmpty
default boolean isEmpty()
Returns a boolean indicating if this container is empty (has zero length).- Returns:
true, if this container is empty, andfalseotherwise.
-
psyLength
default PsyInteger psyLength()
Returns a Ψ-integerrepresenting the length of this object.- Returns:
- a Ψ-
integerlength.
-
psyIsEmpty
default PsyBoolean psyIsEmpty()
Returns a Ψ-booleanindicating if this container is empty (has zero length).- Returns:
- a Ψ-
booleanresult.
-
-