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 boolean
add(Interpretation e)
boolean
contains(java.lang.Object o)
java.util.Iterator<Interpretation>
iterator()
static java.util.List<Argument>
orderedDecided(Interpretation interpretation, Argument[] order)
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> c)
int
size()
-
-
-
Constructor Detail
-
InterpretationTrieSet
public InterpretationTrieSet()
-
InterpretationTrieSet
public InterpretationTrieSet(java.util.List<Interpretation> interpretations)
-
-
Method Detail
-
iterator
public java.util.Iterator<Interpretation> iterator()
- Specified by:
iterator
in interfacejava.util.Collection<Interpretation>
- Specified by:
iterator
in interfacejava.lang.Iterable<Interpretation>
- Specified by:
iterator
in interfacejava.util.Set<Interpretation>
- Specified by:
iterator
in classjava.util.AbstractCollection<Interpretation>
-
add
public boolean add(Interpretation e)
- Specified by:
add
in interfacejava.util.Collection<Interpretation>
- Specified by:
add
in interfacejava.util.Set<Interpretation>
- Overrides:
add
in classjava.util.AbstractCollection<Interpretation>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<Interpretation>
- Specified by:
size
in interfacejava.util.Set<Interpretation>
- Specified by:
size
in classjava.util.AbstractCollection<Interpretation>
-
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove
in interfacejava.util.Collection<Interpretation>
- Specified by:
remove
in interfacejava.util.Set<Interpretation>
- Overrides:
remove
in classjava.util.AbstractCollection<Interpretation>
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
- Specified by:
removeAll
in interfacejava.util.Collection<Interpretation>
- Specified by:
removeAll
in interfacejava.util.Set<Interpretation>
- Overrides:
removeAll
in classjava.util.AbstractSet<Interpretation>
-
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains
in interfacejava.util.Collection<Interpretation>
- Specified by:
contains
in interfacejava.util.Set<Interpretation>
- Overrides:
contains
in classjava.util.AbstractCollection<Interpretation>
-
orderedDecided
public static java.util.List<Argument> orderedDecided(Interpretation interpretation, Argument[] order)
-
-