public abstract class AbstractInMemoryAtomSet extends AbstractAtomSet implements InMemoryAtomSet
Constructor and Description |
---|
AbstractInMemoryAtomSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
addAll(CloseableIteratorWithoutException<? extends Atom> atoms) |
boolean |
addAll(InMemoryAtomSet atoms) |
CloseableIteratorWithoutException<Constant> |
constantsIterator()
Returns an iterator over all constants in this atom set.
|
boolean |
contains(Atom atom)
Returns true if this atom set contains the specified atom.
|
Set<Constant> |
getConstants()
Returns a Set of all constants in this atom set.
|
Set<Literal> |
getLiterals()
Returns a Set of all literals in this atom set.
|
Set<Predicate> |
getPredicates()
Returns a Set of all predicates in this atom set.
|
Set<Term> |
getTerms()
Returns a Set of all terms in this atom set.
|
Set<Term> |
getTerms(Term.Type type)
Deprecated.
|
Set<Variable> |
getVariables()
Returns a Set of all variables in this atom set.
|
boolean |
isEmpty() |
boolean |
isSubSetOf(AtomSet atomset)
Deprecated.
|
CloseableIteratorWithoutException<Literal> |
literalsIterator()
Returns an iterator over all literals in this atom set.
|
boolean |
removeAll(CloseableIteratorWithoutException<? extends Atom> atoms) |
boolean |
removeAll(InMemoryAtomSet atoms) |
CloseableIteratorWithoutException<Variable> |
variablesIterator()
Returns an iterator over all variables in this atom set.
|
addAll, addAll, equals, equals, removeAll, removeAll, toString
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, atomsByPredicate, clear, iterator, match, predicatesIterator, remove, termsByPredicatePosition, termsIterator, termsIterator
public boolean contains(Atom atom)
AtomSet
contains
in interface AtomSet
contains
in interface InMemoryAtomSet
contains
in class AbstractAtomSet
public boolean addAll(CloseableIteratorWithoutException<? extends Atom> atoms)
addAll
in interface InMemoryAtomSet
public boolean addAll(InMemoryAtomSet atoms)
addAll
in interface InMemoryAtomSet
public boolean removeAll(CloseableIteratorWithoutException<? extends Atom> atoms)
removeAll
in interface InMemoryAtomSet
public boolean removeAll(InMemoryAtomSet atoms)
removeAll
in interface InMemoryAtomSet
public Set<Term> getTerms()
AtomSet
getTerms
in interface AtomSet
getTerms
in interface InMemoryAtomSet
getTerms
in class AbstractAtomSet
public Set<Variable> getVariables()
AtomSet
getVariables
in interface AtomSet
getVariables
in interface InMemoryAtomSet
getVariables
in class AbstractAtomSet
public Set<Constant> getConstants()
AtomSet
getConstants
in interface AtomSet
getConstants
in interface InMemoryAtomSet
getConstants
in class AbstractAtomSet
public Set<Literal> getLiterals()
AtomSet
getLiterals
in interface AtomSet
getLiterals
in interface InMemoryAtomSet
getLiterals
in class AbstractAtomSet
@Deprecated public Set<Term> getTerms(Term.Type type)
AtomSet
AtomSet.getVariables()
, AtomSet.getConstants()
or AtomSet.getLiterals()
instead.
getTerms
in interface AtomSet
getTerms
in interface InMemoryAtomSet
getTerms
in class AbstractAtomSet
public CloseableIteratorWithoutException<Variable> variablesIterator()
AtomSet
variablesIterator
in interface AtomSet
variablesIterator
in interface InMemoryAtomSet
variablesIterator
in class AbstractAtomSet
public CloseableIteratorWithoutException<Constant> constantsIterator()
AtomSet
constantsIterator
in interface AtomSet
constantsIterator
in interface InMemoryAtomSet
constantsIterator
in class AbstractAtomSet
public CloseableIteratorWithoutException<Literal> literalsIterator()
AtomSet
literalsIterator
in interface AtomSet
literalsIterator
in interface InMemoryAtomSet
literalsIterator
in class AbstractAtomSet
public Set<Predicate> getPredicates()
AtomSet
getPredicates
in interface AtomSet
getPredicates
in interface InMemoryAtomSet
getPredicates
in class AbstractAtomSet
@Deprecated public boolean isSubSetOf(AtomSet atomset)
AtomSet
isSubSetOf
in interface AtomSet
isSubSetOf
in interface InMemoryAtomSet
isSubSetOf
in class AbstractAtomSet
public boolean isEmpty()
isEmpty
in interface AtomSet
isEmpty
in interface InMemoryAtomSet
isEmpty
in class AbstractAtomSet
Copyright © 2014–2018 GraphIK (INRIA - LIRMM). All rights reserved.