public class ConfluentResourceName
extends java.lang.Object
implements java.lang.Comparable
Modifier and Type | Class and Description |
---|---|
static class |
ConfluentResourceName.Builder |
static class |
ConfluentResourceName.Element |
Modifier and Type | Field and Description |
---|---|
static java.lang.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
|
java.lang.String |
authority()
Return the authority of this CRN
|
int |
compareTo(java.lang.Object o) |
java.util.List<ConfluentResourceName.Element> |
elements()
Return an ordered list of the elements of this CRN
|
boolean |
equals(java.lang.Object o) |
static ConfluentResourceName |
fromString(java.lang.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() |
java.lang.String |
resourceType()
Returns the Resource Type of the resource(s) referred to by the CRN.
|
java.lang.String |
toString() |
public static final java.lang.String DEFAULT_AUTHORITY
public java.lang.String authority()
public java.util.List<ConfluentResourceName.Element> elements()
public ConfluentResourceName.Element lastResourceElement()
public java.lang.String resourceType()
public boolean matches(ConfluentResourceName that)
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ConfluentResourceName allWildcards()
public static ConfluentResourceName fromString(java.lang.String crn) throws CrnSyntaxException
CrnSyntaxException
public static ConfluentResourceName.Builder newBuilder()