|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.lang.base.CoreCharSequence
public abstract class CoreCharSequence
This is an abstract base implementation of the CharSequence
interface.
| Field Summary | |
|---|---|
private int |
cachedHash
the hash of this sequence or 0 if not cached |
| Constructor Summary | |
|---|---|
CoreCharSequence()
The constructor. |
|
| Method Summary | |
|---|---|
protected void |
contentChanged()
This method must be called whenever the char sequence changed its length or data. |
boolean |
equals(Object other)
This implementation is to be discussed, because it can violate the contract of the equals method as defined by Object. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.CharSequence |
|---|
charAt, length, subSequence |
| Field Detail |
|---|
private int cachedHash
0 if not cached
| Constructor Detail |
|---|
public CoreCharSequence()
| Method Detail |
|---|
public boolean equals(Object other)
Object.
equals in class Objectprotected void contentChanged()
public int hashCode()
hashCode in class Objectpublic String toString()
toString in interface CharSequencetoString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||