java.text
Class CharSet.Enumeration
java.lang.Object
java.text.CharSet.Enumeration
- All Implemented Interfaces:
- Enumeration
- Enclosing class:
- CharSet
- public class CharSet.Enumeration
- extends Object
- implements Enumeration
An Enumeration that can be used to extract the character ranges
from a CharSet one at a time
Field Summary |
(package private) String |
chars
|
(package private) int |
p
|
Method Summary |
boolean |
hasMoreElements()
Returns true if the enumeration hasn't yet returned
all the ranges in the CharSet |
Object |
nextElement()
Returns the next range in the CarSet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
p
int p
chars
String chars
CharSet.Enumeration
CharSet.Enumeration(CharSet cs)
- Initializes a CharSet.Enumeration
hasMoreElements
public boolean hasMoreElements()
- Returns true if the enumeration hasn't yet returned
all the ranges in the CharSet
- Specified by:
hasMoreElements
in interface Enumeration
- Returns:
true
if and only if this enumeration object
contains at least one more element to provide;
false
otherwise.
nextElement
public Object nextElement()
- Returns the next range in the CarSet
- Specified by:
nextElement
in interface Enumeration
- Returns:
- the next element of this enumeration.