org.netbeans.mdr.persistence.btreeimpl.btreeindex
Class BtreeCollection

java.lang.Object
  extended by java.util.AbstractCollection
      extended by org.netbeans.mdr.persistence.btreeimpl.btreeindex.BtreeCollection
All Implemented Interfaces:
java.lang.Iterable, java.util.Collection

public class BtreeCollection
extends java.util.AbstractCollection

This is the read-only Collection interface to the set of values contained in a SinglevaluedBtree.

Version:
1.0
Author:
Dana Bergen

Field Summary
protected  Btree btree
           
 
Constructor Summary
BtreeCollection(Btree btree)
          Construct a Collection view of a btree.
 
Method Summary
 boolean isEmpty()
           
 java.util.Iterator iterator()
          Returns an iterator on this BtreeCollection
 int size()
          Returns the number of items in this btree
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Field Detail

btree

protected Btree btree
Constructor Detail

BtreeCollection

public BtreeCollection(Btree btree)
Construct a Collection view of a btree.

Parameters:
btree - the btree
Method Detail

size

public int size()
Returns the number of items in this btree

Specified by:
size in interface java.util.Collection
Specified by:
size in class java.util.AbstractCollection

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection
Overrides:
isEmpty in class java.util.AbstractCollection

iterator

public java.util.Iterator iterator()
Returns an iterator on this BtreeCollection

Specified by:
iterator in interface java.lang.Iterable
Specified by:
iterator in interface java.util.Collection
Specified by:
iterator in class java.util.AbstractCollection


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.