
public class FasterString extends Object implements Cloneable, Serializable, Comparable<FasterString>, CharSequence
| Modifier and Type | Field and Description |
|---|---|
private String |
base |
private static Charset |
CHARSET |
private static byte |
ENCODING_BASE |
private com.google.common.hash.HashCode |
hash |
private int |
hash32bit |
private long |
hash64bit |
private static com.google.common.hash.HashFunction |
HASHF |
private String |
s |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
FasterString(FasterString string)
Clones this object.
|
FasterString(String string) |
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int index) |
FasterString |
clone() |
int |
compareTo(FasterString o) |
private void |
computeHashes() |
boolean |
equals(FasterString fs)
Overloaded method.
|
boolean |
equals(Object o) |
long |
hash64() |
int |
hashCode() |
String |
hashToString() |
int |
length() |
CharSequence |
subSequence(int start,
int end) |
String |
toString() |
finalize, getClass, notify, notifyAll, wait, wait, waitchars, codePointsprivate static final long serialVersionUID
private static final Charset CHARSET
private static final com.google.common.hash.HashFunction HASHF
private static final byte ENCODING_BASE
private String base
private transient com.google.common.hash.HashCode hash
private long hash64bit
private int hash32bit
private final String s
public FasterString(FasterString string)
string - the template for the clonepublic FasterString(String string)
string - the String to wrappublic char charAt(int index)
charAt in interface CharSequencepublic FasterString clone()
public int compareTo(FasterString o)
compareTo in interface Comparable<FasterString>private void computeHashes()
public boolean equals(FasterString fs)
fs - the FasterString to compare topublic long hash64()
public String hashToString()
public int length()
length in interface CharSequencepublic CharSequence subSequence(int start, int end)
subSequence in interface CharSequencepublic String toString()
toString in interface CharSequencetoString in class Object