eworks.RDF.model
Class Statements
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
eworks.RDF.model.AbstractTuples
eworks.RDF.model.Statements
- All Implemented Interfaces:
- Cloneable, Collection, List, RandomAccess, Serializable, Tuples
- public class Statements
- extends AbstractTuples
- Author:
- wleklinski
To change the template for this generated type comment go to
Window>Preferences>Java>Code Generation>Code and Comments
- See Also:
- Serialized Form
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Statements
public Statements()
Statements
public Statements(int initialCapacity)
- Parameters:
initialCapacity -
Statements
public Statements(Collection c)
- Parameters:
c -
add
public boolean add(Statement s)
clone
public Object clone()
- Description copied from interface:
Tuples
- Clones this instance by creating a flat copy. (So the encapsulated tuples
are not cloned as well.)
addAll
public boolean addAll(Collection c,
boolean distinct)
- Description copied from class:
AbstractTuples
- Adds all tuples that are contained inside the given collection
c.
- Specified by:
addAll in interface Tuples- Overrides:
addAll in class AbstractTuples
- Parameters:
c - The tuples to add.distinct - If set to true, there will no duplicates be added.
- Returns:
true if and only if at least one tuple was added.
getStatement
public Statement getStatement(int index)