Package coneforest.psylla.core
Interface PsyLengthy
-
- All Superinterfaces:
PsyConvertableToName
,PsyConvertableToString
,PsyObject
- All Known Subinterfaces:
PsyArraylike<T>
,PsyBounded
,PsyContainer<T>
,PsyDictlike<V>
,PsyQueuelike<T>
,PsySetlike<T>
,PsyStringy
- 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
isEmpty()
Returns a boolean indicating if this container is empty (has zero length).int
length()
Returns a length of this object.default PsyBoolean
psyIsEmpty()
Returns a Ψ-boolean
indicating if this container is empty (has zero length).default PsyInteger
psyLength()
Returns a Ψ-integer
representing 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
-
-
-
-
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, andfalse
otherwise.
-
psyLength
default PsyInteger psyLength()
Returns a Ψ-integer
representing the length of this object.- Returns:
- a Ψ-
integer
length.
-
psyIsEmpty
default PsyBoolean psyIsEmpty()
Returns a Ψ-boolean
indicating if this container is empty (has zero length).- Returns:
- a Ψ-
boolean
result.
-
-