Searched defs:limits (Results 1 - 3 of 3) sorted by relevance
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | ChoiceFormatTest.java | 14 private final double[] limits = new double[] { 0, 1, 2, 3, 4 }; field in class:ChoiceFormatTest 23 ChoiceFormat format = new ChoiceFormat(limits, formats); 32 // Change the limits. 33 format.setChoices(limits, formats); 46 // Change the limits array and make sure that it doesn't affect the ChoiceFormat. 47 limits[2] = 1.2; 48 assertEquals("ChoiceFormat doesn't make defensive copies of limits array", 53 ChoiceFormat format = new ChoiceFormat(limits, formats); 56 // Get the limits array, change the contents and make sure it doesn't affect the behavior 65 ChoiceFormat format = new ChoiceFormat(limits, format [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
H A D | ChoiceFormatTest.java | 31 double[] limits = new double[] { 0, 1, ChoiceFormat.nextDouble(1), field in class:ChoiceFormatTest 37 ChoiceFormat f1 = new ChoiceFormat(limits, formats); 145 assertTrue("Incorrect limits", java.util.Arrays.equals(f.getLimits(), 157 assertTrue("Incorrect limits", java.util.Arrays.equals(f.getLimits(), 181 assertTrue("Incorrect limits", java.util.Arrays.equals(f.getLimits(), 237 assertTrue("Should be equals--same limits, same formats",
|
/libcore/ojluni/src/main/java/java/text/ |
H A D | ChoiceFormat.java | 72 * and an array of limits. The length of these arrays must be the same. 76 * <em>limits</em> = {1,2,3,4,5,6,7}<br> 79 * <em>limits</em> = {0, 1, ChoiceFormat.nextDouble(1)}<br> 89 * double[] limits = {1,2,3,4,5,6,7}; 91 * ChoiceFormat form = new ChoiceFormat(limits, dayOfWeekNames); 309 * Constructs with limits and corresponding formats based on the pattern. 319 * Constructs with the limits and the corresponding formats. 321 * @param limits limits in ascending order 325 public ChoiceFormat(double[] limits, Strin argument 343 setChoices(double[] limits, String formats[]) argument [all...] |
Completed in 796 milliseconds