Package jason.asSyntax
Class SetTermImpl
java.lang.Object
jason.asSyntax.DefaultTerm
jason.asSyntax.SetTermImpl
- All Implemented Interfaces:
SetTerm,Term,ToDOM,ToJson,Serializable,Cloneable,Comparable<Term>,Iterable<Term>,Collection<Term>
Represents a Jason set as a TreeSet in java
- See Also:
-
Field Summary
Fields inherited from class jason.asSyntax.DefaultTerm
hashCodeCache, srcInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends Term> c) intclone and applies together (and faster than clone and then apply)voidclear()clone()intbooleanbooleancontainsAll(Collection<?> c) voiddifference(Collection<Term> lt) booleanjavax.json.JsonValuevoidintersection(Collection<Term> lt) booleanisEmpty()booleanisSet()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<T> T[]toArray(T[] a) toString()voidMethods inherited from class jason.asSyntax.DefaultTerm
cloneNS, countVars, getCyclicVar, getErrorMsg, getSrcInfo, hashCode, hasVar, isArithExpr, isAtom, isCyclicTerm, isGround, isInternalAction, isList, isLiteral, isMap, isNumeric, isPlanBody, isPred, isRule, isString, isStructure, isUnnamedVar, isVar, parse, resetHashCodeCache, setSrcInfo, subsumesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
hashCode, parallelStream, removeIf, spliterator, stream, toArrayMethods inherited from interface jason.asSyntax.Term
cloneNS, countVars, getCyclicVar, getSrcInfo, hasVar, isArithExpr, isAtom, isCyclicTerm, isGround, isInternalAction, isList, isLiteral, isMap, isNumeric, isPlanBody, isPred, isRule, isString, isStructure, isUnnamedVar, isVar, setSrcInfo, subsumesMethods inherited from interface jason.util.ToJson
getAsJsonStr
-
Constructor Details
-
SetTermImpl
public SetTermImpl()
-
-
Method Details
-
clone
- Specified by:
clonein interfaceTerm- Specified by:
clonein classDefaultTerm
-
deepClone
-
capply
Description copied from interface:Termclone and applies together (and faster than clone and then apply)- Specified by:
capplyin interfaceTerm- Overrides:
capplyin classDefaultTerm
-
equals
-
calcHashCode
public int calcHashCode()- Specified by:
calcHashCodein classDefaultTerm
-
compareTo
- Specified by:
compareToin interfaceComparable<Term>- Overrides:
compareToin classDefaultTerm
-
size
public int size()- Specified by:
sizein interfaceCollection<Term>
-
isSet
public boolean isSet()- Specified by:
isSetin interfaceTerm- Overrides:
isSetin classDefaultTerm
-
getAsListTerm
- Specified by:
getAsListTermin interfaceSetTerm
-
iterator
-
add
- Specified by:
addin interfaceCollection<Term>
-
union
-
intersection
- Specified by:
intersectionin interfaceSetTerm
-
difference
- Specified by:
differencein interfaceSetTerm
-
toString
-
getAsDOM
-
getAsJson
public javax.json.JsonValue getAsJson() -
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Term>
-
contains
- Specified by:
containsin interfaceCollection<Term>
-
toArray
- Specified by:
toArrayin interfaceCollection<Term>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<Term>
-
remove
- Specified by:
removein interfaceCollection<Term>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Term>
-
addAll
- Specified by:
addAllin interfaceCollection<Term>
-
removeAll
- Specified by:
removeAllin interfaceCollection<Term>
-
retainAll
- Specified by:
retainAllin interfaceCollection<Term>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Term>
-