Package org.tweetyproject.arg.adf.util
Class InterpretationTrieSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<Interpretation>
-
- org.tweetyproject.arg.adf.util.InterpretationTrieSet
-
- All Implemented Interfaces:
java.lang.Iterable<Interpretation>,java.util.Collection<Interpretation>,java.util.Set<Interpretation>
public final class InterpretationTrieSet extends java.util.AbstractSet<Interpretation>
This is a monotone collection, hence you can only add elements to it, but not remove them.- Author:
- Mathias Hofer
-
-
Constructor Summary
Constructors Constructor Description InterpretationTrieSet()InterpretationTrieSet(java.util.List<Interpretation> interpretations)
-
Method Summary
Modifier and Type Method Description booleanadd(Interpretation e)booleancontains(java.lang.Object o)java.util.Iterator<Interpretation>iterator()static java.util.List<Argument>orderedDecided(Interpretation interpretation, Argument[] order)booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)intsize()
-
-
-
Constructor Detail
-
InterpretationTrieSet
public InterpretationTrieSet()
-
InterpretationTrieSet
public InterpretationTrieSet(java.util.List<Interpretation> interpretations)
-
-
Method Detail
-
iterator
public java.util.Iterator<Interpretation> iterator()
- Specified by:
iteratorin interfacejava.util.Collection<Interpretation>- Specified by:
iteratorin interfacejava.lang.Iterable<Interpretation>- Specified by:
iteratorin interfacejava.util.Set<Interpretation>- Specified by:
iteratorin classjava.util.AbstractCollection<Interpretation>
-
add
public boolean add(Interpretation e)
- Specified by:
addin interfacejava.util.Collection<Interpretation>- Specified by:
addin interfacejava.util.Set<Interpretation>- Overrides:
addin classjava.util.AbstractCollection<Interpretation>
-
size
public int size()
- Specified by:
sizein interfacejava.util.Collection<Interpretation>- Specified by:
sizein interfacejava.util.Set<Interpretation>- Specified by:
sizein classjava.util.AbstractCollection<Interpretation>
-
remove
public boolean remove(java.lang.Object o)
- Specified by:
removein interfacejava.util.Collection<Interpretation>- Specified by:
removein interfacejava.util.Set<Interpretation>- Overrides:
removein classjava.util.AbstractCollection<Interpretation>
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
- Specified by:
removeAllin interfacejava.util.Collection<Interpretation>- Specified by:
removeAllin interfacejava.util.Set<Interpretation>- Overrides:
removeAllin classjava.util.AbstractSet<Interpretation>
-
contains
public boolean contains(java.lang.Object o)
- Specified by:
containsin interfacejava.util.Collection<Interpretation>- Specified by:
containsin interfacejava.util.Set<Interpretation>- Overrides:
containsin classjava.util.AbstractCollection<Interpretation>
-
orderedDecided
public static java.util.List<Argument> orderedDecided(Interpretation interpretation, Argument[] order)
-
-