com.wcohen.secondstring
Class StringWrapper
java.lang.Object
|
+--com.wcohen.secondstring.StringWrapper
- public class StringWrapper
- extends java.lang.Object
An extendible (non-final) class that implements some of the
functionality of a string.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
StringWrapper
public StringWrapper(java.lang.String s)
charAt
public char charAt(int i)
length
public int length()
unwrap
public java.lang.String unwrap()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object