public class EquivalentEnumFactory extends Object implements EquivalentFactory<Enum<?>>
| Constructor and Description |
|---|
EquivalentEnumFactory(Class<?> enumClass)
Construct a new Factory.
|
| Modifier and Type | Method and Description |
|---|---|
Enum<?> |
create()
Create an Enum constant of the specified Enum type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInstance, getServiceDefinitionpublic EquivalentEnumFactory(Class<?> enumClass) throws IllegalArgumentException
enumClass - The type of Enum to create Enum constants of.IllegalArgumentException - If enumClass is deemed illegal. For example, if it is null.public Enum<?> create()
create in interface EquivalentFactory<Enum<?>>Copyright © 2010–2020 meanbean. All rights reserved.