java.text
Class CharSet.Enumeration

java.lang.Object
  extended byjava.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
           
 
Constructor Summary
(package private) CharSet.Enumeration(CharSet cs)
          Initializes a CharSet.Enumeration
 
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
 

Field Detail

p

int p

chars

String chars
Constructor Detail

CharSet.Enumeration

CharSet.Enumeration(CharSet cs)
Initializes a CharSet.Enumeration

Method Detail

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.