Build m3-rc37a

java.lang
Class String

java.lang.Object
  extended by java.lang.String
All Implemented Interfaces:
Serializable, CharSequence, Comparable

public final class String
extends Object
implements Serializable, Comparable, CharSequence

See Also:
Serialized Form

Field Summary
static Comparator CASE_INSENSITIVE_ORDER
           
 
Constructor Summary
String()
           
String(byte[] data)
           
String(byte[] data, int high)
          Deprecated. Method String is deprecated
String(byte[] data, int start, int length)
           
String(byte[] data, int high, int start, int length)
          Deprecated. Method String is deprecated
String(byte[] data, int start, int length, String encoding)
           
String(byte[] data, String encoding)
           
String(char[] data)
           
String(char[] data, int start, int length)
           
String(int[] codePoints, int offset, int count)
           
String(String string)
           
String(StringBuffer stringbuffer)
           
String(StringBuilder sb)
           
 
Method Summary
 char charAt(int index)
           
 int codePointAt(int index)
           
 int codePointBefore(int index)
           
 int codePointCount(int beginIndex, int endIndex)
           
 int compareTo(String string)
           
 int compareToIgnoreCase(String string)
           
 String concat(String string)
           
 boolean contains(CharSequence cs)
           
 boolean contentEquals(CharSequence cs)
           
 boolean contentEquals(StringBuffer strbuf)
           
static String copyValueOf(char[] data)
           
static String copyValueOf(char[] data, int start, int length)
           
 boolean endsWith(String suffix)
           
 boolean equals(Object object)
           
 boolean equalsIgnoreCase(String string)
           
static String format(Locale loc, String format, Object... args)
           
static String format(String format, Object... args)
           
 byte[] getBytes()
           
 void getBytes(int start, int end, byte[] data, int index)
          Deprecated. Method getBytes is deprecated
 byte[] getBytes(String encoding)
           
 void getChars(int start, int end, char[] buffer, int index)
           
 int hashCode()
           
 int indexOf(int c)
           
 int indexOf(int c, int start)
           
 int indexOf(String string)
           
 int indexOf(String subString, int start)
           
 String intern()
           
 int lastIndexOf(int c)
           
 int lastIndexOf(int c, int start)
           
 int lastIndexOf(String string)
           
 int lastIndexOf(String subString, int start)
           
 int length()
           
 boolean matches(String expr)
           
 int offsetByCodePoints(int index, int codePointOffset)
           
 boolean regionMatches(boolean ignoreCase, int thisStart, String string, int start, int length)
           
 boolean regionMatches(int thisStart, String string, int start, int length)
           
 String replace(char oldChar, char newChar)
           
 String replace(CharSequence target, CharSequence replacement)
           
 String replaceAll(String expr, String substitute)
           
 String replaceFirst(String expr, String substitute)
           
 String[] split(String expr)
           
 String[] split(String expr, int max)
           
 boolean startsWith(String prefix)
           
 boolean startsWith(String prefix, int start)
           
 CharSequence subSequence(int start, int end)
           
 String substring(int start)
           
 String substring(int start, int end)
           
 char[] toCharArray()
           
 String toLowerCase()
           
 String toLowerCase(Locale locale)
           
 String toString()
           
 String toUpperCase()
           
 String toUpperCase(Locale locale)
           
 String trim()
           
static String valueOf(boolean value)
           
static String valueOf(char value)
           
static String valueOf(char[] data)
           
static String valueOf(char[] data, int start, int length)
           
static String valueOf(double value)
           
static String valueOf(float value)
           
static String valueOf(int value)
           
static String valueOf(long value)
           
static String valueOf(Object value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

CASE_INSENSITIVE_ORDER

public static final Comparator CASE_INSENSITIVE_ORDER
Constructor Detail

String

public String()

String

public String(byte[] data)

String

public String(byte[] data,
              int high)
Deprecated. Method String is deprecated


String

public String(byte[] data,
              int start,
              int length)

String

public String(byte[] data,
              int high,
              int start,
              int length)
Deprecated. Method String is deprecated


String

public String(byte[] data,
              int start,
              int length,
              String encoding)
       throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

String

public String(byte[] data,
              String encoding)
       throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

String

public String(char[] data)

String

public String(char[] data,
              int start,
              int length)

String

public String(String string)

String

public String(StringBuffer stringbuffer)

String

public String(int[] codePoints,
              int offset,
              int count)

String

public String(StringBuilder sb)
Method Detail

charAt

public char charAt(int index)
Specified by:
charAt in interface CharSequence

compareTo

public int compareTo(String string)

compareToIgnoreCase

public int compareToIgnoreCase(String string)

concat

public String concat(String string)

copyValueOf

public static String copyValueOf(char[] data)

copyValueOf

public static String copyValueOf(char[] data,
                                 int start,
                                 int length)

endsWith

public boolean endsWith(String suffix)

equals

public boolean equals(Object object)
Overrides:
equals in class Object

equalsIgnoreCase

public boolean equalsIgnoreCase(String string)

getBytes

public byte[] getBytes()

getBytes

public void getBytes(int start,
                     int end,
                     byte[] data,
                     int index)
Deprecated. Method getBytes is deprecated


getBytes

public byte[] getBytes(String encoding)
                throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

getChars

public void getChars(int start,
                     int end,
                     char[] buffer,
                     int index)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

indexOf

public int indexOf(int c)

indexOf

public int indexOf(int c,
                   int start)

indexOf

public int indexOf(String string)

indexOf

public int indexOf(String subString,
                   int start)

intern

public String intern()

lastIndexOf

public int lastIndexOf(int c)

lastIndexOf

public int lastIndexOf(int c,
                       int start)

lastIndexOf

public int lastIndexOf(String string)

lastIndexOf

public int lastIndexOf(String subString,
                       int start)

length

public int length()
Specified by:
length in interface CharSequence

regionMatches

public boolean regionMatches(int thisStart,
                             String string,
                             int start,
                             int length)

regionMatches

public boolean regionMatches(boolean ignoreCase,
                             int thisStart,
                             String string,
                             int start,
                             int length)

replace

public String replace(char oldChar,
                      char newChar)

replace

public String replace(CharSequence target,
                      CharSequence replacement)

startsWith

public boolean startsWith(String prefix)

startsWith

public boolean startsWith(String prefix,
                          int start)

substring

public String substring(int start)

substring

public String substring(int start,
                        int end)

toCharArray

public char[] toCharArray()

toLowerCase

public String toLowerCase()

toLowerCase

public String toLowerCase(Locale locale)

toString

public String toString()
Specified by:
toString in interface CharSequence
Overrides:
toString in class Object

toUpperCase

public String toUpperCase()

toUpperCase

public String toUpperCase(Locale locale)

trim

public String trim()

valueOf

public static String valueOf(char[] data)

valueOf

public static String valueOf(char[] data,
                             int start,
                             int length)

valueOf

public static String valueOf(char value)

valueOf

public static String valueOf(double value)

valueOf

public static String valueOf(float value)

valueOf

public static String valueOf(int value)

valueOf

public static String valueOf(long value)

valueOf

public static String valueOf(Object value)

valueOf

public static String valueOf(boolean value)

contentEquals

public boolean contentEquals(StringBuffer strbuf)

contentEquals

public boolean contentEquals(CharSequence cs)

matches

public boolean matches(String expr)

replaceAll

public String replaceAll(String expr,
                         String substitute)

replaceFirst

public String replaceFirst(String expr,
                           String substitute)

split

public String[] split(String expr)

split

public String[] split(String expr,
                      int max)

subSequence

public CharSequence subSequence(int start,
                                int end)
Specified by:
subSequence in interface CharSequence

codePointAt

public int codePointAt(int index)

codePointBefore

public int codePointBefore(int index)

codePointCount

public int codePointCount(int beginIndex,
                          int endIndex)

contains

public boolean contains(CharSequence cs)

offsetByCodePoints

public int offsetByCodePoints(int index,
                              int codePointOffset)

format

public static String format(String format,
                            Object... args)

format

public static String format(Locale loc,
                            String format,
                            Object... args)

Build m3-rc37a