public enum ResourceTypes extends Enum<ResourceTypes> implements ResourceType
Enum Constant and Description |
---|
HISTORY |
REPOSITORY |
RUNTIME |
Modifier and Type | Method and Description |
---|---|
static ResourceType |
forName(String name) |
String |
getName()
returns the name of the resource's type
|
Integer |
getValue()
returns the unique numeric value of the type.
|
String |
toString() |
static ResourceTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResourceTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResourceTypes REPOSITORY
public static final ResourceTypes RUNTIME
public static final ResourceTypes HISTORY
public static ResourceTypes[] values()
for (ResourceTypes c : ResourceTypes.values()) System.out.println(c);
public static ResourceTypes valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<ResourceTypes>
public String getName()
ResourceType
getName
in interface ResourceType
public Integer getValue()
ResourceType
getValue
in interface ResourceType
public static ResourceType forName(String name)
Copyright © 2022. All rights reserved.