public class ResourcePath extends Object implements Iterable<String>, Comparable<ResourcePath>
ResourceStorageDao
implementation.Constructor and Description |
---|
ResourcePath(Collection<String> pathElements) |
ResourcePath(ResourcePath parent,
Iterable<String> path) |
ResourcePath(ResourcePath parent,
String... path) |
ResourcePath(String... path) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ResourcePath other) |
String[] |
elements() |
boolean |
equals(Object obj) |
static ResourcePath |
get(Collection<String> pathElements)
Convenience method.
|
static ResourcePath |
get(Path path)
Convenience method.
|
static ResourcePath |
get(ResourcePath parent,
Iterable<String> path)
Convenience method.
|
static ResourcePath |
get(ResourcePath parent,
String... path)
Convenience method.
|
static ResourcePath |
get(String... path)
Convenience method.
|
static ResourcePath |
get(String prefix,
Path path)
Convenience method.
|
String |
getName() |
int |
hashCode() |
Iterator<String> |
iterator() |
int |
relativeDepth(ResourcePath child)
Determines the relative depth of a child path.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public ResourcePath(String... path)
public ResourcePath(Collection<String> pathElements)
public ResourcePath(ResourcePath parent, String... path)
public ResourcePath(ResourcePath parent, Iterable<String> path)
public static ResourcePath get(String... path)
public static ResourcePath get(Collection<String> pathElements)
public static ResourcePath get(ResourcePath parent, String... path)
public static ResourcePath get(ResourcePath parent, Iterable<String> path)
public static ResourcePath get(Path path)
public static ResourcePath get(String prefix, Path path)
public String getName()
public String[] elements()
public int relativeDepth(ResourcePath child)
public int compareTo(ResourcePath other)
compareTo
in interface Comparable<ResourcePath>
Copyright © 2017. All rights reserved.