Module coneforest.psylla
Package coneforest.psylla.core
Interface PsyAppendable<T extends PsyObject>
- Type Parameters:
T- a type ofobjects 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 ContextActionContext action of theappendoperator.static final ContextActionContext action of theappendalloperator.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 TypeMethodDescriptionvoidAppends a givenobjectto this container.default voidpsyAppendAll(PsyIterable<? extends T> oIterable) Appends all theobjects from a giveniterableenumeration 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 theappendoperator. -
PSY_APPENDALL
Context action of theappendalloperator.
-
-
Method Details
-
psyAppend
Appends a givenobjectto this container.- Parameters:
o- anobjectto append.- Throws:
PsyLimitCheckException- when TODO.PsyRangeCheckException- when TODO.
-
psyAppendAll
default void psyAppendAll(PsyIterable<? extends T> oIterable) throws PsyLimitCheckException, PsyRangeCheckException Appends all theobjects from a giveniterableenumeration 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- aniterableenumeration.- Throws:
PsyLimitCheckException- when TODO.PsyRangeCheckException- when TODO.
-
psyReplicate
- Throws:
PsyErrorException
-