|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.n1.util.enum.EnumFactoryImpl
com.sun.n1.util.enumx.EnumFactoryXImpl
public abstract class EnumFactoryXImpl
This class is the base implementation of the Enumumeration types.
Its not meant to be used directly, only subclasses should be used.
Note that the getEnum* methods inherited from EnumFactoryImpl are
deprecated and will not be supported in the next release. The methods
getEnumX(String)
, getEnumX(int)
and
getAllEnumXs(EnumX[])
must be used instead.
Constructor Summary | |
---|---|
protected |
EnumFactoryXImpl()
Creates a new instance of EnumFactoryXImpl |
protected |
EnumFactoryXImpl(int expectedSize)
|
Method Summary | |
---|---|
EnumX[] |
getAllEnumXs(EnumX[] container)
Returns an array of all EnumXs. |
EnumX |
getEnumX(int value)
Returns the EnumX associated with the passed int value. |
EnumX |
getEnumX(java.lang.String value)
Returns the EnumX associated with the passed String value. |
Methods inherited from class com.sun.n1.util.enum.EnumFactoryImpl |
---|
getAllEnums, getEnum, getEnum |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sun.n1.util.enum.EnumFactory |
---|
getAllEnums, getEnum, getEnum |
Constructor Detail |
---|
protected EnumFactoryXImpl()
protected EnumFactoryXImpl(int expectedSize)
Method Detail |
---|
public EnumX getEnumX(java.lang.String value) throws NoSuchEnumExceptionX
EnumFactoryX
getEnumX
in interface EnumFactoryX
value
- the string value of the desired EnumX.
NoSuchEnumExceptionX
- if no such enum exists.public EnumX getEnumX(int value) throws NoSuchEnumExceptionX
EnumFactoryX
getEnumX
in interface EnumFactoryX
value
- the int value of the desired EnumX.
NoSuchEnumExceptionX
- if no such enum exists.public EnumX[] getAllEnumXs(EnumX[] container)
EnumFactoryX
getAllEnumXs
in interface EnumFactoryX
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |