com.funambol.storage
Class ObjectEnumeration

java.lang.Object
  extended by com.funambol.storage.ObjectEnumeration
All Implemented Interfaces:
java.util.Enumeration

public class ObjectEnumeration
extends java.lang.Object
implements java.util.Enumeration

Useful class to enumerate sorted and filtered contact records


Constructor Summary
ObjectEnumeration()
           
ObjectEnumeration(AbstractRecordStore refrs, ObjectFilter rf, ObjectComparator rc, Serializable obj)
          Constructor
 
Method Summary
 int getSize()
          return the number of objects within the enumeration
 boolean hasMoreElements()
          Enumeration interface implemented method
 java.lang.Object nextElement()
          Enumeration interface implemented method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectEnumeration

public ObjectEnumeration()

ObjectEnumeration

public ObjectEnumeration(AbstractRecordStore refrs,
                         ObjectFilter rf,
                         ObjectComparator rc,
                         Serializable obj)
Constructor

Method Detail

hasMoreElements

public boolean hasMoreElements()
Enumeration interface implemented method

Specified by:
hasMoreElements in interface java.util.Enumeration
Returns:
true if enumeration has more elements

nextElement

public java.lang.Object nextElement()
Enumeration interface implemented method

Specified by:
nextElement in interface java.util.Enumeration
Returns:
Object to fill enumeration

getSize

public int getSize()
return the number of objects within the enumeration

Returns:
size is the number of objects into this enumeration


Copyright © 2001-2009 Funambol.