@Immutable public final class ResourceProperty extends Object
ResourceProperty represents a resource property| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceProperty.Type
ResourceProperty can have various types, depending of the context they are used |
| Modifier and Type | Field and Description |
|---|---|
static Comparator<ResourceProperty> |
TYPE_NAME_COMPARATOR
Comparator that compares ResourceProperty by their type and name |
| Constructor and Description |
|---|
ResourceProperty(ResourceProperty.Type type,
String name,
String value)
Create a new
ResourceProperty with the given ResourceProperty.Type, name and value |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getName()
Returns the name of the
ResourceProperty |
ResourceProperty.Type |
getType()
Returns the
ResourceProperty.Type of the ResourceProperty |
String |
getValue()
Returns the value of the
ResourceProperty |
int |
hashCode() |
String |
toString() |
public static final Comparator<ResourceProperty> TYPE_NAME_COMPARATOR
Comparator that compares ResourceProperty by their type and namepublic ResourceProperty(ResourceProperty.Type type, String name, String value)
ResourceProperty with the given ResourceProperty.Type, name and valuetype - ResourceProperty.Type of the ResourcePropertyname - name of the ResourcePropertyvalue - value of the ResourcePropertyNullPointerException - if any parameter is nullpublic String getName()
ResourcePropertyResourcePropertypublic ResourceProperty.Type getType()
ResourceProperty.Type of the ResourcePropertyResourceProperty.Type of the ResourcePropertypublic String getValue()
ResourcePropertyResourcePropertyCopyright © 2013–2014 shadowhunt. All rights reserved.