net.rim.device.api.util
Interface IntEnumeration


public interface IntEnumeration

Enumeration of integer elements.

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


Method Summary
 boolean hasMoreElements()
          Determines if this enumeration contains more elements.
 int 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

int 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