com.hp.hpl.jena.graph.query
Class Domain
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
com.hp.hpl.jena.graph.query.Domain
- All Implemented Interfaces:
- IndexValues, Iterable, Collection, List
public class Domain
- extends AbstractList
- implements IndexValues
A Domain is an answer to a Binding query. It satisfies the List
interface so that casual users don't have to worry about its special
features - for them, it is immutable (they only ever get to see Domains
that have emerged from the query process).
- Author:
- kers
Constructor Summary |
Domain(int size)
|
Domain(Node[] value)
Initialise a Domain with a copy of a Node value array. |
Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList |
Domain
public Domain(Node[] value)
- Initialise a Domain with a copy of a Node value array.
Domain
public Domain(int size)
size
public int size()
- Specified by:
size
in interface Collection
- Specified by:
size
in interface List
- Specified by:
size
in class AbstractCollection
get
public Object get(int i)
- Description copied from interface:
IndexValues
- Answer the value at
index
.
- Specified by:
get
in interface IndexValues
- Specified by:
get
in interface List
- Specified by:
get
in class AbstractList
setElement
public void setElement(int i,
Node x)
copy
public Domain copy()
equals
public boolean equals(Object x)
- Specified by:
equals
in interface Collection
- Specified by:
equals
in interface List
- Overrides:
equals
in class AbstractList
toString
public String toString()
- Overrides:
toString
in class AbstractCollection
Copyright © 2000, 2001, 2002, 2003, 2004 Hewlett-Packard Development Company, LP