ICU-9916 Fix documentation in DateTimePatternGenerator. add->addPattern.

X-SVN-Rev: 33246
This commit is contained in:
Travis Keep 2013-02-15 22:15:14 +00:00
parent f5cd9984c6
commit 7982b01ec3

View File

@ -61,7 +61,7 @@ import com.ibm.icu.util.UResourceBundle;
*
* // modify the generator by adding patterns
* DateTimePatternGenerator.PatternInfo returnInfo = new DateTimePatternGenerator.PatternInfo();
* gen.add("d'. von' MMMM", true, returnInfo);
* gen.addPattern("d'. von' MMMM", true, returnInfo);
* // the returnInfo is mostly useful for debugging problem cases
* format.applyPattern(gen.getBestPattern("MMMMddHmm"));
* assertEquals("modified format: MMMddHmm",
@ -94,7 +94,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
// TODO add hack to fix months for CJK, as per bug ticket 1099
/**
* Create empty generator, to be constructed with add(...) etc.
* Create empty generator, to be constructed with addPattern(...) etc.
* @stable ICU 3.6
*/
public static DateTimePatternGenerator getEmptyInstance() {
@ -439,7 +439,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
}
/**
* PatternInfo supplies output parameters for add(...). It is used because
* PatternInfo supplies output parameters for addPattern(...). It is used because
* Java doesn't have real output parameters. It is treated like a struct (eg
* Point), so all fields are public.
*