public static final class Resource.StringResource extends Object implements Resource
String
.
String resources are immutable value types and never have any children.Resource.StringResource
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
String |
name() |
static Resource.StringResource |
New(String name)
Creates a new
Resource instance of a simple default type with the
passed resource name. |
static Resource |
provide(String name,
Resource existingInstance,
Set<String> children) |
String |
toString() |
static void |
update(String name,
Resource resource,
Set<Resource> children) |
public static Resource provide(String name, Resource existingInstance, Set<String> children)
public static Resource.StringResource New(String name)
Resource
Resource
instance of a simple default type with the
passed resource name. The passed name may not be null.public final String name()