com.hp.hpl.jena.graph.query
Class Domain
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<Node>
com.hp.hpl.jena.graph.query.Domain
- All Implemented Interfaces:
- IndexValues, java.lang.Iterable<Node>, java.util.Collection<Node>, java.util.List<Node>
public final class Domain
- extends java.util.AbstractList<Node>
- 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)
Initialise this Domain with size null slots. |
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 |
Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Domain
public Domain(Node[] value)
- Initialise a Domain with a copy of a Node value array.
Domain
public Domain(int size)
- Initialise this Domain with
size
null slots.
size
public int size()
- Specified by:
size
in interface java.util.Collection<Node>
- Specified by:
size
in interface java.util.List<Node>
- Specified by:
size
in class java.util.AbstractCollection<Node>
get
public Node get(int i)
- Description copied from interface:
IndexValues
- Answer the value at
index
.
- Specified by:
get
in interface IndexValues
- Specified by:
get
in interface java.util.List<Node>
- Specified by:
get
in class java.util.AbstractList<Node>
setElement
public void setElement(int i,
Node x)
getElement
public Node getElement(int i)
copy
public Domain copy()
equals
public boolean equals(java.lang.Object x)
- Specified by:
equals
in interface java.util.Collection<Node>
- Specified by:
equals
in interface java.util.List<Node>
- Overrides:
equals
in class java.util.AbstractList<Node>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.util.AbstractCollection<Node>
Copyright © 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP