|
org.openide.util 8.15.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openide.util.CharSequences
public final class CharSequences
Useful static methods to provide and work with memory efficient CharSequence implementations for ASCII strings.
Method Summary | |
---|---|
static Comparator<CharSequence> |
comparator()
Provides optimized char sequences comparator |
static CharSequence |
create(char[] buf,
int start,
int count)
Provides compact char sequence object like String.String(char[], int, int) |
static CharSequence |
create(CharSequence s)
Provides compact char sequence object like String.String(String) |
static CharSequence |
empty()
Returns object to represent empty sequence "" |
static int |
indexOf(CharSequence text,
CharSequence seq)
Implementation of String.indexOf(String) for character sequences. |
static int |
indexOf(CharSequence text,
CharSequence seq,
int fromIndex)
Implementation of String.indexOf(String,int) for character sequences. |
static boolean |
isCompact(CharSequence cs)
Predicate to check if provides char sequence is based on compact implementation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static CharSequence create(char[] buf, int start, int count)
String.String(char[], int, int)
public static CharSequence create(CharSequence s)
String.String(String)
public static Comparator<CharSequence> comparator()
public static CharSequence empty()
public static boolean isCompact(CharSequence cs)
cs
- char sequence object to check
public static int indexOf(CharSequence text, CharSequence seq)
String.indexOf(String)
for character sequences.
public static int indexOf(CharSequence text, CharSequence seq, int fromIndex)
String.indexOf(String,int)
for character sequences.
|
org.openide.util 8.15.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |