|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.util.Strings
public class Strings
A class for static String utility methods.
Constructor Summary | |
---|---|
Strings()
|
Method Summary | |
---|---|
static java.lang.String |
replace(java.lang.String source,
java.lang.String find,
java.lang.String repl)
This is intended to be semantically equivalent to source.replace(find, repl)
but also compatible with JDK 1.4. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Strings()
Method Detail |
---|
public static java.lang.String replace(java.lang.String source, java.lang.String find, java.lang.String repl)
source.replace(find, repl)
but also compatible with JDK 1.4.
source
- The String on which to operatefind
- The literal substring to be replacedrepl
- The literal replacement substring
java.lang.NullPointerException
- if any of the arguments are null
java.lang.IllegalArgumentException
- if find
has zero lengthString.replace(CharSequence target, CharSequence replacement)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |