|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<ITerm>
org.deri.iris.basics.Tuple
public class Tuple
A simple tuple implementation. This implementation is thread-safe.
$Id: Tuple.java,v 1.20 2007-11-07 16:14:44 nathaliest Exp $
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Method Summary | |
|---|---|
ITuple |
append(Collection<? extends ITerm> t)
Creates a new tupel with the tuples of this one and
appends the tuples of the submitted list at the end. |
int |
compareTo(ITuple t)
|
boolean |
equals(Object o)
|
ITerm |
get(int i)
|
List<IVariable> |
getAllVariables()
Returns all variables from this tupple. |
Set<IVariable> |
getVariables()
Returns all distinct variables from this tupple. |
boolean |
isGround()
Checks whether this tuple contains only ground terms. |
int |
size()
|
String |
toString()
|
| Methods inherited from class java.util.AbstractList |
|---|
add, add, addAll, clear, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
add, add, addAll, addAll, clear, contains, containsAll, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
| Method Detail |
|---|
public int size()
size in interface Collection<ITerm>size in interface List<ITerm>size in class AbstractCollection<ITerm>public ITerm get(int i)
get in interface List<ITerm>get in class AbstractList<ITerm>public ITuple append(Collection<? extends ITerm> t)
ITuplethis one and
appends the tuples of the submitted list at the end.
append in interface ITuplet - the tuples to add
public boolean isGround()
ITuple
isGround in interface ITupletrue if all terms of this tuple are grounded;
false otherwise.public String toString()
toString in class AbstractCollection<ITerm>public int compareTo(ITuple t)
compareTo in interface Comparable<ITuple>public boolean equals(Object o)
equals in interface Collection<ITerm>equals in interface List<ITerm>equals in class AbstractList<ITerm>public Set<IVariable> getVariables()
ITuple
getVariables in interface ITuplepublic List<IVariable> getAllVariables()
ITuple
getAllVariables in interface ITuple
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||