|
|
java > java.lang > java.lang.string >
Class: java.lang.String java.lang.Object java.lang.String
public final class String extends Object implements Serializable, Comparable, CharSequence
FIELDS:
public static final Comparator CASE_INSENSITIVE_ORDER |
|
|
|
CONSTRUCTORS:
| | | public | String() |
| | public | String(String original) |
| | public | String(char[] value) |
| | public | String(char[] value, int offset, int count) |
| | public | String(int[] codePoints, int offset, int count) |
| | public | String(byte[] ascii, int hibyte, int offset, int count) |
| | public | String(byte[] ascii, int hibyte) |
| | public | String(byte[] bytes, int offset, int length, String charsetName) |
| | public | String(byte[] bytes, int offset, int length, Charset charset) |
| | public | String(byte[] bytes, String charsetName) |
| | public | String(byte[] bytes, Charset charset) |
| | public | String(byte[] bytes, int offset, int length) |
| | public | String(byte[] bytes) |
| | public | String(StringBuffer buffer) |
| | public | String(StringBuilder builder) |
| |
|
|
|
METHODS:
| | | | public | char | charAt(int index) Throws: IndexOutOfBoundsException |
| | public | int | codePointAt(int index) Throws: IndexOutOfBoundsException |
| | public | int | codePointBefore(int index) Throws: IndexOutOfBoundsException |
| | public | int | codePointCount(int beginIndex, int endIndex) Throws: IndexOutOfBoundsException |
| | public | int | compareTo(String anotherString) |
| | public | int | compareToIgnoreCase(String str) |
| | public | String | concat(String str) |
| | public | boolean | contains(CharSequence s) Throws: NullPointerException |
| | public | boolean | contentEquals(CharSequence cs) |
| | public | boolean | contentEquals(StringBuffer sb) |
| | public static | String | copyValueOf(char[] data) |
| | public static | String | copyValueOf(char[] data, int offset, int count) |
| | public | boolean | endsWith(String suffix) |
| | public | boolean | equals(Object anObject) Overrides: Object |
| | public | boolean | equalsIgnoreCase(String anotherString) |
| | public static | String | format(String format, Object... args) Throws: NullPointerException |
| | public static | String | format(Locale l, String format, Object... args) Throws: NullPointerException |
| | public | byte[] | getBytes() |
| | public | void | getBytes(int srcBegin, int srcEnd, byte[] dst, int dstBegin) Throws: IndexOutOfBoundsException |
| | public | byte[] | getBytes(String charsetName) Throws: UnsupportedEncodingException |
| | public | byte[] | getBytes(Charset charset) |
| | public | void | getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) Throws: IndexOutOfBoundsException |
| | public | int | hashCode() Overrides: Object |
| | public | int | indexOf(int ch) |
| | public | int | indexOf(int ch, int fromIndex) |
| | public | int | indexOf(String str) |
| | public | int | indexOf(String str, int fromIndex) |
| | public | String | intern() |
| | public | boolean | isEmpty() |
| | public | int | lastIndexOf(int ch) |
| | public | int | lastIndexOf(int ch, int fromIndex) |
| | public | int | lastIndexOf(String str) |
| | public | int | lastIndexOf(String str, int fromIndex) |
| | public | int | length() |
| | public | boolean | matches(String regex) Throws: PatternSyntaxException |
| | public | int | offsetByCodePoints(int index, int codePointOffset) Throws: IndexOutOfBoundsException |
| | public | boolean | regionMatches(boolean ignoreCase, int toffset, String other, int ooffset, int len) |
| | public | boolean | regionMatches(int toffset, String other, int ooffset, int len) |
| | public | String | replace(char oldChar, char newChar) |
| | public | String | replace(CharSequence target, CharSequence replacement) Throws: NullPointerException |
| | public | String | replaceAll(String regex, String replacement) Throws: PatternSyntaxException |
| | public | String | replaceFirst(String regex, String replacement) Throws: PatternSyntaxException |
| | public | String[] | split(String regex) Throws: PatternSyntaxException |
| | public | String[] | split(String regex, int limit) Throws: PatternSyntaxException |
| | public | boolean | startsWith(String prefix) |
| | public | boolean | startsWith(String prefix, int toffset) |
| | public | CharSequence | subSequence(int beginIndex, int endIndex) Throws: IndexOutOfBoundsException |
| | public | String | substring(int beginIndex) Throws: IndexOutOfBoundsException |
| | public | String | substring(int beginIndex, int endIndex) Throws: IndexOutOfBoundsException |
| | public | char[] | toCharArray() |
| | public | String | toLowerCase() |
| | public | String | toLowerCase(Locale locale) |
| | public | String | toString() Overrides: Object |
| | public | String | toUpperCase() |
| | public | String | toUpperCase(Locale locale) |
| | public | String | trim() |
| | public static | String | valueOf(boolean b) |
| | public static | String | valueOf(char c) |
| | public static | String | valueOf(char[] data) |
| | public static | String | valueOf(char[] data, int offset, int count) Throws: IndexOutOfBoundsException |
| | public static | String | valueOf(double d) |
| | public static | String | valueOf(float f) |
| | public static | String | valueOf(int i) |
| | public static | String | valueOf(Object obj) |
| | public static | String | valueOf(long l) |
| |
|
|
|
INHERITED METHODS:
| getClass(), hashCode(), equals(java.lang.Object), clone(), toString(), notify(), notifyAll(), wait(long), wait(long, int), wait(), finalize(), |
|
|
|
SUBCLASSES:
|
|



|