Class TString
java.lang.Object
de.mirkosertic.bytecoder.classlib.java.lang.TString
- All Implemented Interfaces:
CharSequence
,Comparable<String>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchar
charAt
(int index) int
codePointCount
(int beginIndex, int endIndex) int
boolean
boolean
boolean
boolean
equalsIgnoreCase
(String str) static String
byte[]
getBytes()
void
getChars
(int srcBegin, int srcEnd, char[] dst, int dstBegin) int
hashCode()
int
indexOf
(int c) (package private) void
initializeWith
(byte[] data, int offset, int count, byte coder) (package private) void
initializeWith
(char[] data, int offset, int count) (package private) void
initializeWith
(int[] data, int offset, int count) (package private) void
initializeWith
(String value) int
lastIndexOf
(int c) int
lastIndexOf
(String str) int
length()
boolean
repeat
(int amount) replaceAll
(String regex, String replacement) boolean
startsWith
(String value) subSequence
(int start, int end) substring
(int pos) substring
(int pos, int len) char[]
toLowerCase
(Locale locale) toString()
toUpperCase
(Locale locale) trim()
static String
valueOf
(boolean b) static String
valueOf
(byte b) static String
valueOf
(char c) static String
valueOf
(double d) static String
valueOf
(float f) static String
valueOf
(int i) static String
valueOf
(long l) static String
valueOf
(short s) (package private) static String
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Constructor Details
-
TString
public TString() -
TString
-
TString
public TString(byte[] data, byte coder) -
TString
public TString(byte[] data) -
TString
public TString(byte[] data, int offset, int count) -
TString
public TString(char[] data, int offset, int count) -
TString
public TString(char[] data) -
TString
public TString(int[] data, int offset, int count)
-
-
Method Details
-
initializeWith
void initializeWith(byte[] data, int offset, int count, byte coder) -
initializeWith
-
initializeWith
void initializeWith(char[] data, int offset, int count) -
initializeWith
void initializeWith(int[] data, int offset, int count) -
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
matches
-
valueOf
-
valueOf
-
valueOf
-
valueOf
-
valueOf
-
valueOf
-
valueOf
-
valueOf
-
valueOf
-
toCharArray
public char[] toCharArray() -
getChars
public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) -
format
-
equalsIgnoreCase
-
equals
-
equals0
-
indexOf
public int indexOf(int c) -
lastIndexOf
public int lastIndexOf(int c) -
lastIndexOf
-
compareTo
- Specified by:
compareTo
in interfaceComparable<String>
-
repeat
-
substring
-
substring
-
startsWith
-
endsWith
-
replaceAll
-
codePointCount
public int codePointCount(int beginIndex, int endIndex) -
trim
-
length
public int length()- Specified by:
length
in interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAt
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
getBytes
public byte[] getBytes() -
hashCode
public int hashCode() -
toUpperCase
-
toUpperCase
-
toLowerCase
-
toLowerCase
-