com.hp.hpl.jena.graph.query
Class Domain

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by 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.
 
Method Summary
 Domain copy()
           
 boolean equals(Object x)
           
 Object get(int i)
          Answer the value at index.
 void setElement(int i, Node x)
           
 int size()
           
 String toString()
           
 
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
 

Constructor Detail

Domain

public Domain(Node[] value)
Initialise a Domain with a copy of a Node value array.


Domain

public Domain(int size)
Method Detail

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