Class PsySet
java.lang.Object
coneforest.psylla.core.PsySet
- All Implemented Interfaces:
PsyAppendable<PsyObject>, PsyClearable, PsyContainer<PsyObject>, PsyFormalSet<PsyObject>, PsyIterable<PsyObject>, PsyLengthy, PsyObject, PsySequential<PsyObject>, PsyStreamable<PsyObject>, Iterable<PsyObject>
The representation of
set.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContextActionContext action of thesetoperator.static final ContextActionContext action of thesettomarkoperator.Fields inherited from interface PsyAppendable
PSY_APPEND, PSY_APPENDALL, PSY_REPLICATEFields inherited from interface PsyClearable
PSY_CLEARFields inherited from interface PsyFormalSet
PSY_CONTAINS, PSY_INTERSECTS, PSY_REMOVE, PSY_REMOVEALL, PSY_RETAINALLFields inherited from interface PsyLengthy
PSY_ISEMPTY, PSY_LENGTHFields inherited from interface PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TOSTRING, PSY_TOSTRINGBUFFER, PSY_TYPEFields inherited from interface PsySequential
PSY_FORALLFields inherited from interface PsyStreamable
PSY_STREAM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()iterator()intlength()Returns a length of this object.voidAppends a givenobjectto this container.voidpsyClear()Removes all the elements from this set.psyClone()Returns a clone of this object.Returns abooleanobject indicating whether a givenobjectbelongs to this set.voidRemoves anobjectfrom this set.Methods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface PsyContainer
psyNewEmptyMethods inherited from interface PsyFormalSet
psyAppendAll, psyIntersects, psyRemoveAll, psyReplicate, psyRetainAll, toSyntaxString, toSyntaxStringHelperMethods inherited from interface PsyIterable
psyToArray, psyUniteMethods inherited from interface PsyLengthy
isEmpty, psyIsEmpty, psyLengthMethods inherited from interface PsyObject
convert, execute, invoke, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToString, psyToStringBuffer, psyType, typeNameMethods inherited from interface PsyStreamable
psyForAll
-
Field Details
-
PSY_SET
Context action of thesetoperator. -
PSY_SETTOMARK
Context action of thesettomarkoperator.
-
-
Constructor Details
-
PsySet
public PsySet()Creates a new emptysetobject. -
PsySet
-
-
Method Details
-
psyClone
-
length
public int length()Description copied from interface:PsyLengthyReturns a length of this object.- Specified by:
lengthin interfacePsyLengthy- Returns:
- a length of this object
-
psyAppend
Description copied from interface:PsyAppendableAppends a givenobjectto this container.- Specified by:
psyAppendin interfacePsyAppendable<PsyObject>- Parameters:
o- anobjectto append.
-
psyRemove
Description copied from interface:PsyFormalSetRemoves anobjectfrom this set. If a given object is not present in this set, error does not occur.- Specified by:
psyRemovein interfacePsyFormalSet<PsyObject>- Parameters:
o- anobject.
-
psyContains
Description copied from interface:PsyFormalSetReturns abooleanobject indicating whether a givenobjectbelongs to this set.- Specified by:
psyContainsin interfacePsyFormalSet<PsyObject>- Parameters:
o- anobject.- Returns:
- a
booleanobject indicating whether a givenobjectbelongs to this set
-
psyClear
public void psyClear()Description copied from interface:PsyFormalSetRemoves all the elements from this set.- Specified by:
psyClearin interfacePsyClearable- Specified by:
psyClearin interfacePsyFormalSet<PsyObject>
-
iterator
-
psyStream
- Specified by:
psyStreamin interfacePsyIterable<PsyObject>- Specified by:
psyStreamin interfacePsyStreamable<PsyObject>
-
hashCode
-
equals
-