|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.jcr.util.Util
public final class Util
Miscellaneous utility functions
Method Summary | |
---|---|
static String |
replace(String string,
String target,
String replacement)
Replace every occurrence of target in string with
replacement . |
static GregorianCalendar |
toCalendar(Calendar date)
Convert from Calendar to a GregorianCalendar . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static GregorianCalendar toCalendar(Calendar date)
Calendar
to a GregorianCalendar
.
date
-
date
if it is an instance of GregorianCalendar
.
Otherwise a new GregorianCalendar
instance for date
.public static String replace(String string, String target, String replacement)
target
in string
with
replacement
.
string
- string to do replacement ontarget
- string to search forreplacement
- string to replace with
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |