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 coneforest.psylla.core.PsyAppendable
PSY_APPEND, PSY_APPENDALLFields inherited from interface coneforest.psylla.core.PsyClearable
PSY_CLEARFields inherited from interface coneforest.psylla.core.PsyFormalSet
PSY_CONTAINS, PSY_INTERSECTS, PSY_REMOVE, PSY_REMOVEALL, PSY_RETAINALLFields inherited from interface coneforest.psylla.core.PsyLengthy
PSY_ISEMPTY, PSY_LENGTHFields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TONAME, PSY_TOSTRING, PSY_TYPEFields inherited from interface coneforest.psylla.core.PsySequential
PSY_FORALLFields inherited from interface coneforest.psylla.core.PsyStreamable
PSY_STREAM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioniterator()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 class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface coneforest.psylla.core.PsyContainer
psyNewEmpty, toSyntaxStringHelperMethods inherited from interface coneforest.psylla.core.PsyFormalSet
psyAppendAll, psyIntersects, psyRemoveAll, psyReplicate, psyRetainAll, toSyntaxString, toSyntaxStringHelperMethods inherited from interface coneforest.psylla.core.PsyIterable
psyToArray, psyUniteMethods inherited from interface coneforest.psylla.core.PsyLengthy
isEmpty, psyIsEmpty, psyLengthMethods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, typeNameMethods inherited from interface coneforest.psylla.core.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
Creates a newsetobject wrapped around the given hash set.- Parameters:
set- a given hash set.
-
-
Method Details
-
psyClone
Description copied from interface:PsyObjectReturns a clone of this object. -
length
public int length()Description copied from interface:PsyLengthyReturns a length of this object.- Specified by:
lengthin interfacePsyLengthy- Returns:
- a length.
-
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:
booleanindicating whether an object belongs 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>
-