public final class CharSequences extends Object
Modifier and Type | Method and Description |
---|---|
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(char[], int, int) |
static CharSequence |
create(CharSequence s)
Provides compact char sequence object like
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
|
public static CharSequence create(char[] buf, int start, int count)
String(char[], int, int)
public static CharSequence create(CharSequence s)
String(String)
public static Comparator<CharSequence> comparator()
public static CharSequence empty()
public static boolean isCompact(CharSequence cs)
cs
- char sequence object to checkpublic 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.Built on June 4 2024. | Copyright © 2017-2024 Apache Software Foundation. All Rights Reserved.