net.rim.device.api.util
Interface LongEnumeration


public interface LongEnumeration

Enumeration of long integer elements.

Optimization since Long class is immutable and getNext() would need to allocate every value.


Method Summary
 boolean hasMoreElements()
          Determines if this enumeration contains more elements.
 long nextElement()
          Retrieves the next element of this enumeration.
 

Method Detail

hasMoreElements

public boolean hasMoreElements()
Determines if this enumeration contains more elements.

Returns:
True if this enumeration has at least one more element to provide; otherwise, false.

nextElement

public long nextElement()
Retrieves the next element of this enumeration.

Returns:
Next element in this enumeration.
Throws:
NoSuchElementException - If this enumeration has no more elements.



Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.