Class ImmutableAtomList
java.lang.Object
edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.ImmutableAtomList
An immutable list of atoms
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(LogicSchemaVisitor<T> visitor) void
boolean
boolean
addAll
(int index, Collection<? extends Atom> c) boolean
addAll
(Collection<? extends Atom> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) boolean
get
(int index) getPredicatePositionsWithVar
(Variable variable) int
hashCode()
int
boolean
isEmpty()
iterator()
int
listIterator
(int index) remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
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, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
containsAll
in interfaceCollection<Atom>
- Specified by:
containsAll
in interfaceList<Atom>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<Atom>
-
listIterator
- Specified by:
listIterator
in interfaceList<Atom>
-
listIterator
- Specified by:
listIterator
in interfaceList<Atom>
-
subList
-
equals
-
hashCode
public int hashCode() -
accept
-
toString
-