public static final class UResource.Key extends Object implements CharSequence, Cloneable, Comparable<UResource.Key>
| Constructor and Description |
|---|
Key()
Constructs an empty resource key string object.
|
Key(String s)
Constructs a resource key object equal to the given string.
|
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int i) |
UResource.Key |
clone()
Does not clone the byte array.
|
int |
compareTo(CharSequence cs) |
int |
compareTo(UResource.Key other) |
boolean |
contentEquals(CharSequence cs) |
boolean |
endsWith(CharSequence cs) |
boolean |
equals(Object other) |
int |
hashCode() |
int |
length() |
boolean |
regionMatches(int start,
CharSequence cs) |
UResource.Key |
setBytes(byte[] keyBytes,
int keyOffset)
Mutates this key for a new NUL-terminated resource key string.
|
UResource.Key |
setString(String s)
Mutates this key to be equal to the given string.
|
UResource.Key |
setToEmpty()
Mutates this key to an empty resource key string.
|
boolean |
startsWith(CharSequence cs) |
UResource.Key |
subSequence(int start,
int end) |
String |
substring(int start)
Creates a new Java String for a sub-sequence of this resource key string.
|
String |
substring(int start,
int end)
Creates a new Java String for a sub-sequence of this resource key string.
|
String |
toString()
Creates/caches/returns this resource key string as a Java String.
|
chars, codePoints, compare, isEmptypublic Key()
public Key(String s)
public UResource.Key setBytes(byte[] keyBytes, int keyOffset)
keyBytes - new key string byte arraykeyOffset - new key string offsetpublic UResource.Key setToEmpty()
public UResource.Key setString(String s)
public UResource.Key clone()
public char charAt(int i)
charAt in interface CharSequencepublic int length()
length in interface CharSequencepublic UResource.Key subSequence(int start, int end)
subSequence in interface CharSequencepublic String toString()
toString in interface CharSequencetoString in class Objectpublic String substring(int start)
public String substring(int start, int end)
public boolean contentEquals(CharSequence cs)
public boolean startsWith(CharSequence cs)
public boolean endsWith(CharSequence cs)
public boolean regionMatches(int start,
CharSequence cs)
public int compareTo(UResource.Key other)
compareTo in interface Comparable<UResource.Key>public int compareTo(CharSequence cs)