public class ConfluentResourceName extends Object implements Comparable
Modifier and Type | Class and Description |
---|---|
static class |
ConfluentResourceName.Builder |
static class |
ConfluentResourceName.Element |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_AUTHORITY |
Modifier and Type | Method and Description |
---|---|
ConfluentResourceName |
allWildcards()
Return a CRN of the same form as this one, with all resource names as wildcards
|
String |
authority()
Return the authority of this CRN
|
int |
compareTo(Object o) |
List<ConfluentResourceName.Element> |
elements()
Return an ordered list of the elements of this CRN
|
boolean |
equals(Object o) |
static ConfluentResourceName |
fromString(String crn)
Parse the given string to a ConfluentResourceName, throw if it can't be parsed
|
int |
hashCode() |
ConfluentResourceName.Element |
lastResourceElement()
Returns the last element in the list of elements.
|
boolean |
matches(ConfluentResourceName that)
Treating this CRN as a pattern, does the other CRN match it?
|
static ConfluentResourceName.Builder |
newBuilder() |
String |
resourceType()
Returns the Resource Type of the resource(s) referred to by the CRN.
|
String |
toString() |
public static final String DEFAULT_AUTHORITY
public String authority()
public List<ConfluentResourceName.Element> elements()
public ConfluentResourceName.Element lastResourceElement()
public String resourceType()
public boolean matches(ConfluentResourceName that)
public int compareTo(Object o)
compareTo
in interface Comparable
public ConfluentResourceName allWildcards()
public static ConfluentResourceName fromString(String crn) throws CrnSyntaxException
CrnSyntaxException
public static ConfluentResourceName.Builder newBuilder()