|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.wcohen.ss.BasicStringWrapper
public class BasicStringWrapper
An extendible (non-final) class that implements some of the functionality of a string.
Constructor Summary | |
---|---|
BasicStringWrapper(java.lang.String s)
|
Method Summary | |
---|---|
char |
charAt(int i)
Return the i-th char of the wrapped string |
int |
hashCode()
|
int |
length()
Return the length of the wrapped string |
java.lang.String |
toString()
|
java.lang.String |
unwrap()
Return the string that is wrapped. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicStringWrapper(java.lang.String s)
Method Detail |
---|
public char charAt(int i)
StringWrapper
charAt
in interface StringWrapper
public int length()
StringWrapper
length
in interface StringWrapper
public java.lang.String unwrap()
StringWrapper
unwrap
in interface StringWrapper
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |