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

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

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-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal