@Beta public final class ResourcePath extends Object
| Modifier and Type | Field and Description |
|---|---|
static ResourcePath |
ROOT |
| Constructor and Description |
|---|
ResourcePath(List<Object> components)
Creates an resource path from the specified components.
|
ResourcePath(Object... components)
Creates an resource path from the specified components.
|
| Modifier and Type | Method and Description |
|---|---|
static ResourcePath |
child(ResourcePath parent,
Object child) |
List<Object> |
components()
Returns the components of this resource path.
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isRoot()
Returns true if the path represents root.
|
Object |
lastComponent()
Returns the last component of this instance.
|
Optional<ResourcePath> |
parent()
Returns the parent resource path of this instance.
|
String |
toString() |
public static final ResourcePath ROOT
public ResourcePath(Object... components)
components - components of the path. The order represents hierarchical structure of the resource.public static ResourcePath child(ResourcePath parent, Object child)
public List<Object> components()
public Optional<ResourcePath> parent()
public boolean isRoot()
public Object lastComponent()
components().Copyright © 2015. All rights reserved.