public class Resource extends Object implements Serializable
| Constructor and Description |
|---|
Resource(String id)
Creates a new
Resource instance with the supplied resource ID, default application
ID, and an empty set of attributes. |
Resource(String id,
com.google.common.base.Optional<Map<String,String>> attributes)
Creates a new
Resource with the supplied ID. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
com.google.common.base.Optional<Map<String,String>> |
getAttributes() |
String |
getId() |
int |
hashCode() |
String |
toString() |
public Resource(String id)
Resource instance with the supplied resource ID, default application
ID, and an empty set of attributes.id - the resource identifier.Copyright © 2015. All rights reserved.