Class ImmutableAtomList
java.lang.Object
edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.ImmutableAtomList
An immutable list of atoms
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(LogicSchemaVisitor<T> visitor) voidbooleanbooleanaddAll(int index, Collection<? extends Atom> c) booleanaddAll(Collection<? extends Atom> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleanget(int index) getPredicatePositionsWithVar(Variable variable) inthashCode()intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Constructor Details
-
ImmutableAtomList
-
ImmutableAtomList
-
-
Method Details
-
getPredicatePositionsWithVar
- Parameters:
variable- not null- Returns:
- a set of PredicatePositions appearing in body that contains the given variable
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<Atom>- Specified by:
containsAllin interfaceList<Atom>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<Atom>
-
listIterator
- Specified by:
listIteratorin interfaceList<Atom>
-
listIterator
- Specified by:
listIteratorin interfaceList<Atom>
-
subList
-
hashCode
public int hashCode() -
equals
-
toString
-
accept
-