Module coneforest.psylla
Package coneforest.psylla.core
Interface PsyAppendable<T extends PsyObject>
- Type Parameters:
T
- a type ofobject
s being appended.
- All Superinterfaces:
PsyObject
- All Known Subinterfaces:
PsyFormalArray<T>
,PsyFormalSet<T>
The representation of
appendable
, a type of container that allow to append objects
(usually to the end, if it makes sense).-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContextAction
Context action of theappend
operator.static final ContextAction
Context action of theappendall
operator.Fields 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 TypeMethodDescriptionvoid
Appends a givenobject
to this container.default void
psyAppendAll
(PsyIterable<? extends T> oIterable) Appends all theobject
s from a giveniterable
enumeration to this container.psyReplicate
(PsyInteger oCount) Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
-
Field Details
-
PSY_APPEND
Context action of theappend
operator. -
PSY_APPENDALL
Context action of theappendall
operator.
-
-
Method Details
-
psyAppend
Appends a givenobject
to this container.- Parameters:
o
- anobject
to append.- Throws:
PsyLimitCheckException
- when TODO.PsyRangeCheckException
- when TODO.
-
psyAppendAll
default void psyAppendAll(PsyIterable<? extends T> oIterable) throws PsyLimitCheckException, PsyRangeCheckException Appends all theobject
s from a giveniterable
enumeration to this container. When a given enumeration is the same as this container, first clone the enumeration, and then appends all the elements from the clone to avoid concurrent modification.- Parameters:
oIterable
- aniterable
enumeration.- Throws:
PsyLimitCheckException
- when TODO.PsyRangeCheckException
- when TODO.
-
psyReplicate
- Throws:
PsyErrorException
-