com.strangelight.util
Class MyString
java.lang.Object
|
+--com.strangelight.util.MyString
- Direct Known Subclasses:
- Cleartext, Cryptword
- public class MyString
- extends java.lang.Object
A non-final
class meant to be plug-compatible with
String
. The behaviour and methods of MyString
are identical to those of java.lang.String
, except
that, because the class in not final
, it is possible to
create subclasses of MyString
.
(This class is not yet fully implemented, so some of
java.lang.String
's methods are still missing from
MyString
.)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MyString
public MyString()
MyString
public MyString(java.lang.String s)
MyString
public MyString(MyString s)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.String s)
equals
public boolean equals(MyString s)
length
public int length()
concat
public MyString concat(java.lang.String str)
concat
public MyString concat(MyString str)
concat
public MyString concat(char c)
getBytes
public byte[] getBytes()