|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.util.AbstractStringWrapper
Wraps string data to provide consistent basis for the string utility methods
defined in AbstractString.
This class can wrap a String,
a StringBuffer, or a character array. To be thrifty with
runtime storage you can instantiate one wrapper, and re-use it on different
string data.
| Constructor Summary | ||
protected |
AbstractStringWrapper()
Creates new AbstractStringWrapper instance. |
|
| Method Summary | ||
static AbstractStringWrapper |
createInstance(Object string)
Retrieves an abstract string wrapper for provided string data. |
|
int |
hashCode()
Retrieves hash code for this wrapper's enclosed string data. |
|
abstract void |
reset(Object string)
Wraps new string with this wrapper. |
|
| Methods inherited from class java.lang.Object |
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.rim.device.api.util.AbstractString |
charAt, getChars, indexOf, length |
| Constructor Detail |
| Method Detail |
public static AbstractStringWrapper createInstance(Object string) throws IllegalArgumentException
Invoke this method to wrap string data of some kind and gain access
to the various utility methods defined in this class and in AbstractString.
string - String data to wrap; may be a String, a
StringBuffer, or a character array.IllegalArugmentException - If string parameter is not of expected type.public abstract void reset(Object string) throws IllegalArgumentException
Use this method to avoid creating a new wrapper instance.
string - New string to wrap; may be a String, a
StringBuffer, or a character array.IllegalArgumentException - If string parameter is not of expected type.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.