Avian v0.3

java.lang
Class String

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

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

See Also:
Serialized Form

Field Summary
static Comparator<String> CASE_INSENSITIVE_ORDER
           
 
Constructor Summary
String()
           
String(byte[] data)
           
String(byte[] data, int offset, int length)
           
String(byte[] data, int offset, int length, boolean copy)
           
String(byte[] bytes, int highByte, int offset, int length)
           
String(byte[] bytes, int offset, int length, String charsetName)
           
String(byte[] data, String charset)
           
String(char[] data)
           
String(char[] data, int offset, int length)
           
String(char[] data, int offset, int length, boolean copy)
           
String(String s)
           
 
Method Summary
 char charAt(int index)
           
 int codePointAt(int offset)
           
 int codePointCount(int start, int end)
           
 int compareTo(String s)
           
 int compareToIgnoreCase(String s)
           
 String concat(String s)
           
 boolean contains(CharSequence match)
           
 boolean endsWith(String s)
           
 boolean equals(Object o)
           
 boolean equalsIgnoreCase(String o)
           
static String format(Locale locale, String format, Object... args)
           
static String format(String format, Object... args)
           
 byte[] getBytes()
           
 void getBytes(int srcOffset, int srcLength, byte[] dst, int dstOffset)
           
 byte[] getBytes(String format)
           
 void getChars(int srcOffset, int srcEnd, char[] dst, int dstOffset)
           
 int hashCode()
           
 int indexOf(int c)
           
 int indexOf(int c, int start)
           
 int indexOf(String s)
           
 int indexOf(String s, int start)
           
 String intern()
           
 boolean isEmpty()
           
 int lastIndexOf(int ch)
           
 int lastIndexOf(int ch, int lastIndex)
           
 int lastIndexOf(String s)
           
 int lastIndexOf(String s, int lastIndex)
           
 int length()
           
 boolean matches(String regex)
           
 boolean regionMatches(boolean ignoreCase, int thisOffset, String match, int matchOffset, int length)
           
 boolean regionMatches(int thisOffset, String match, int matchOffset, int length)
           
 String replace(char oldChar, char newChar)
           
 String replace(CharSequence match, CharSequence replacement)
           
 String replaceAll(String regex, String replacement)
           
 String replaceFirst(String regex, String replacement)
           
 String[] split(String regex)
           
 String[] split(String regex, int limit)
           
 boolean startsWith(String s)
           
 boolean startsWith(String s, 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 v)
           
static String valueOf(byte v)
           
static String valueOf(char v)
           
static String valueOf(char[] data)
           
static String valueOf(char[] data, int offset, int length)
           
static String valueOf(double v)
           
static String valueOf(float v)
           
static String valueOf(int v)
           
static String valueOf(long v)
           
static String valueOf(Object s)
           
static String valueOf(short v)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CASE_INSENSITIVE_ORDER

public static Comparator<String> CASE_INSENSITIVE_ORDER
Constructor Detail

String

public String()

String

public String(char[] data,
              int offset,
              int length,
              boolean copy)

String

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

String

public String(char[] data)

String

public String(byte[] bytes,
              int offset,
              int length,
              String charsetName)
       throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

String

public String(byte[] data,
              int offset,
              int length,
              boolean copy)

String

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

String

public String(byte[] data)

String

public String(String s)

String

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

String

public String(byte[] bytes,
              int highByte,
              int offset,
              int length)
Method Detail

toString

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

length

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

equalsIgnoreCase

public boolean equalsIgnoreCase(String o)

compareTo

public int compareTo(String s)
Specified by:
compareTo in interface Comparable<String>

compareToIgnoreCase

public int compareToIgnoreCase(String s)

trim

public String trim()

toLowerCase

public String toLowerCase()

toUpperCase

public String toUpperCase()

indexOf

public int indexOf(int c)

indexOf

public int indexOf(int c,
                   int start)

lastIndexOf

public int lastIndexOf(int ch)

indexOf

public int indexOf(String s)

indexOf

public int indexOf(String s,
                   int start)

lastIndexOf

public int lastIndexOf(String s)

lastIndexOf

public int lastIndexOf(String s,
                       int lastIndex)

replace

public String replace(char oldChar,
                      char newChar)

substring

public String substring(int start)

substring

public String substring(int start,
                        int end)

startsWith

public boolean startsWith(String s)

startsWith

public boolean startsWith(String s,
                          int start)

endsWith

public boolean endsWith(String s)

concat

public String concat(String s)

getBytes

public void getBytes(int srcOffset,
                     int srcLength,
                     byte[] dst,
                     int dstOffset)

getBytes

public byte[] getBytes()

getBytes

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

getChars

public void getChars(int srcOffset,
                     int srcEnd,
                     char[] dst,
                     int dstOffset)

toCharArray

public char[] toCharArray()

charAt

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

split

public String[] split(String regex)

split

public String[] split(String regex,
                      int limit)

subSequence

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

matches

public boolean matches(String regex)

replaceFirst

public String replaceFirst(String regex,
                           String replacement)

replaceAll

public String replaceAll(String regex,
                         String replacement)

intern

public String intern()

valueOf

public static String valueOf(Object s)

valueOf

public static String valueOf(boolean v)

valueOf

public static String valueOf(byte v)

valueOf

public static String valueOf(short v)

valueOf

public static String valueOf(char v)

valueOf

public static String valueOf(int v)

valueOf

public static String valueOf(long v)

valueOf

public static String valueOf(float v)

valueOf

public static String valueOf(double v)

valueOf

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

valueOf

public static String valueOf(char[] data)

lastIndexOf

public int lastIndexOf(int ch,
                       int lastIndex)

regionMatches

public boolean regionMatches(int thisOffset,
                             String match,
                             int matchOffset,
                             int length)

regionMatches

public boolean regionMatches(boolean ignoreCase,
                             int thisOffset,
                             String match,
                             int matchOffset,
                             int length)

isEmpty

public boolean isEmpty()

contains

public boolean contains(CharSequence match)

codePointAt

public int codePointAt(int offset)

codePointCount

public int codePointCount(int start,
                          int end)

replace

public String replace(CharSequence match,
                      CharSequence replacement)

toUpperCase

public String toUpperCase(Locale locale)

toLowerCase

public String toLowerCase(Locale locale)

format

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

format

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

Avian v0.3

http://oss.readytalk.com/avian