public final class Resource extends Object implements Comparable<Resource>
Resource defines a resource location in the repository.| Modifier and Type | Field and Description |
|---|---|
static Resource |
ROOT
Represents the base
Resource in the repository. |
static String |
SEPARATOR
Separator
String for directories. |
static char |
SEPARATOR_CHAR
Separator
char for directories. |
| Modifier and Type | Method and Description |
|---|---|
Resource |
append(Resource resource)
|
int |
compareTo(Resource other) |
static Resource |
create(String path)
Create a new
Resource instance for the given value. |
boolean |
equals(Object obj) |
Resource |
getParent()
|
String |
getValue()
|
String |
getValueWithoutLeadingSeparator()
|
int |
hashCode() |
boolean |
isPrefix(Resource other)
|
String |
toString() |
public static final String SEPARATOR
String for directories.public static final char SEPARATOR_CHAR
char for directories.public static Resource create(String path)
Resource instance for the given value.public int compareTo(Resource other)
compareTo in interface Comparable<Resource>public String getValueWithoutLeadingSeparator()
public boolean isPrefix(Resource other)
Copyright © 2013–2017 shadowhunt. All rights reserved.