public final class ConfigResource extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ConfigResource.Type
Type of resource.
|
Constructor and Description |
---|
ConfigResource(ConfigResource.Type type,
String name)
Create an instance of this class with the provided parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isDefault()
Returns true if this is the default resource of a resource type.
|
String |
name()
Return the resource name.
|
String |
toString() |
ConfigResource.Type |
type()
Return the resource type.
|
public ConfigResource(ConfigResource.Type type, String name)
type
- a non-null resource typename
- a non-null resource namepublic ConfigResource.Type type()
public String name()
public boolean isDefault()