|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.svrCore.Name.CSWrapper<T>
private static class Name.CSWrapper<T extends Name>
Effectively-immutable light-weight wrapper around the underlying text. Can be intern()ed to help eliminate some expensive duplicates.
| Field Summary | |
|---|---|
(package private) int |
end
End offset (exclusive) on underlying impl; non-negative. |
(package private) int |
start
Start offset (inclusive) on underlying impl; non-negative. |
(package private) T |
underlying
Underlying instance; non-null. |
| Constructor Summary | |
|---|---|
Name.CSWrapper(T underlying,
int start,
int end)
Create an instance. |
|
| Method Summary | |
|---|---|
char |
charAt(int index)
|
int |
compareTo(java.lang.CharSequence other)
|
boolean |
equals(java.lang.Object obj)
Equality checks for the same type and content. |
int |
hashCode()
The hash code is based on a fixed-time sampling of the content for speed. |
int |
length()
|
java.lang.CharSequence |
subSequence(int start,
int end)
|
byte[] |
toByteArray()
Create private byte[] copy for caller; never null. |
java.lang.String |
toString()
Convert to String containing same char sequence. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
final transient T extends Name underlying
final int start
final int end
| Constructor Detail |
|---|
Name.CSWrapper(T underlying,
int start,
int end)
underlying - the Name instance that this provides a view of; never nullstart - inclusive start index; in range [0,end]end - exclusive end index; in range [start,underlying.length()]| Method Detail |
|---|
public char charAt(int index)
charAt in interface java.lang.CharSequencepublic int length()
length in interface java.lang.CharSequence
public java.lang.CharSequence subSequence(int start,
int end)
subSequence in interface java.lang.CharSequencepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(java.lang.CharSequence other)
compareTo in interface java.lang.Comparable<java.lang.CharSequence>public java.lang.String toString()
toString in interface java.lang.CharSequencetoString in class java.lang.Objectpublic final byte[] toByteArray()
toByteArray in interface TextUtils.CharSequence8Bit
|
DHD Multimedia Gallery V1.57.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||