Build 1.0_r1(from source)

java.util.prefs
Class NodeSet

java.lang.Object
  extended by java.util.prefs.NodeSet
All Implemented Interfaces:
NodeList

 class NodeSet
extends Object
implements NodeList


Field Summary
(package private)  ArrayList<Node> list
           
 
Constructor Summary
NodeSet(Iterator<Node> nodes)
           
 
Method Summary
 int getLength()
          The number of nodes in the list.
 Node item(int index)
          Returns the indexth item in the collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

ArrayList<Node> list
Constructor Detail

NodeSet

public NodeSet(Iterator<Node> nodes)
Method Detail

getLength

public int getLength()
Description copied from interface: NodeList
The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.

Specified by:
getLength in interface NodeList
Returns:
the length of the list.

item

public Node item(int index)
Description copied from interface: NodeList
Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.

Specified by:
item in interface NodeList
Parameters:
index - Index into the collection.
Returns:
The node at the indexth position in the NodeList, or null if that is not a valid index.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature