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