Home
last modified time | relevance | path

Searched refs:Format (Results 1 – 24 of 24) sorted by relevance

/libcore/ojluni/src/main/java/java/text/
DFieldPosition.java96 private Format.Field attribute;
122 public FieldPosition(Format.Field attribute) { in FieldPosition()
142 public FieldPosition(Format.Field attribute, int fieldID) { in FieldPosition()
155 public Format.Field getFieldAttribute() { in getFieldAttribute()
213 Format.FieldDelegate getFieldDelegate() { in getFieldDelegate()
263 private boolean matchesField(Format.Field attribute) { in matchesField()
275 private boolean matchesField(Format.Field attribute, int field) { in matchesField()
288 private class Delegate implements Format.FieldDelegate {
296 public void formatted(Format.Field attr, Object value, int start, in formatted()
305 public void formatted(int fieldID, Format.Field attr, Object value, in formatted()
DDontCareFieldPosition.java37 private final Format.FieldDelegate noDelegate = new Format.FieldDelegate() {
38 public void formatted(Format.Field attr, Object value, int start,
41 public void formatted(int fieldID, Format.Field attr, Object value,
50 Format.FieldDelegate getFieldDelegate() { in getFieldDelegate()
DMessageFormat.java345 public class MessageFormat extends Format {
530 Format fmt = formats[i]; in toPattern()
608 public void setFormatsByArgumentIndex(Format[] newFormats) { in setFormatsByArgumentIndex()
639 public void setFormats(Format[] newFormats) { in setFormats()
667 public void setFormatByArgumentIndex(int argumentIndex, Format newFormat) { in setFormatByArgumentIndex()
692 public void setFormat(int formatElementIndex, Format newFormat) { in setFormat()
722 public Format[] getFormatsByArgumentIndex() { in getFormatsByArgumentIndex()
729 Format[] resultArray = new Format[maximumArgumentNumber + 1]; in getFormatsByArgumentIndex()
752 public Format[] getFormats() { in getFormats()
753 Format[] resultArray = new Format[maxOffset + 1]; in getFormats()
[all …]
DFormat.java133 public abstract class Format implements Serializable, Cloneable { class
141 protected Format() { in Format() method in Format
389 public void formatted(Format.Field attr, Object value, int start, in formatted()
403 public void formatted(int fieldID, Format.Field attr, Object value, in formatted()
DCharacterIteratorFieldDelegate.java36 class CharacterIteratorFieldDelegate implements Format.FieldDelegate {
56 public void formatted(Format.Field attr, Object value, int start, int end, in formatted()
95 public void formatted(int fieldID, Format.Field attr, Object value, in formatted()
DDateFormat.java148 public abstract class DateFormat extends Format {
841 public static class Field extends Format.Field {
DNumberFormat.java180 public abstract class NumberFormat extends Format {
1107 public static class Field extends Format.Field {
DDecimalFormat.java520 Format.Field fieldAttribute = fp.getFieldAttribute(); in getIcuFieldPosition()
/libcore/ojluni/src/main/java/sun/invoke/util/
DWrapper.java30 …BOOLEAN( Boolean.class, boolean.class, 'Z', (Boolean)false, new boolean[0], Format.unsigned(…
32 …BYTE ( Byte.class, byte.class, 'B', (Byte)(byte)0, new byte[0], Format.signed( …
33 …SHORT ( Short.class, short.class, 'S', (Short)(short)0, new short[0], Format.signed( …
34 …CHAR (Character.class, char.class, 'C', (Character)(char)0, new char[0], Format.unsigned(…
35 …INT ( Integer.class, int.class, 'I', (Integer)/*(int)*/0, new int[0], Format.signed( …
36 …LONG ( Long.class, long.class, 'J', (Long)(long)0, new long[0], Format.signed( …
37 …FLOAT ( Float.class, float.class, 'F', (Float)(float)0, new float[0], Format.floating(…
38 …DOUBLE ( Double.class, double.class, 'D', (Double)(double)0, new double[0], Format.floating(…
39 …OBJECT ( Object.class, Object.class, 'L', null, new Object[0], Format.other( …
41 …VOID ( Void.class, void.class, 'V', null, null, Format.other( …
[all …]
/libcore/luni/src/test/java/libcore/java/text/
DOldFormatTest.java22 import java.text.Format;
29 private class MockFormat extends Format {
55 Format fm = new MockFormat(); in test_clone()
56 Format fmc = (Format) fm.clone(); in test_clone()
DOldFormatFieldTest.java20 import java.text.Format;
24 private class MockFormatField extends Format.Field {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DMessageFormatTest.java30 import java.text.Format;
123 Format[] formats = f1.getFormats(); in test_setFormatILjava_text_Format()
126 Format[] correctFormats = new Format[] { in test_setFormatILjava_text_Format()
230 Format[] correctFormats = new Format[] { in test_setFormats$Ljava_text_Format()
239 Format[] formats = f1.getFormats(); in test_setFormats$Ljava_text_Format()
322 Format[] formats = format.getFormats(); in test_ConstructorLjava_lang_String()
536 Format[] formats = clone.getFormats(); in test_clone()
612 Format[] formats = format1.getFormats(); in test_getFormats()
613 Format[] correctFormats = new Format[] { in test_getFormats()
628 correctFormats = new Format[] { NumberFormat.getCurrencyInstance(), in test_getFormats()
[all …]
DSupport_Format.java22 import java.text.Format;
37 protected void t_FormatWithField(int count, Format format, Object object, in t_FormatWithField()
38 String text, Format.Field field, int begin, int end) { in t_FormatWithField()
58 …protected void t_Format(int count, Object object, Format format, Vector<FieldContainer> expectedRe… in t_Format()
/libcore/support/src/test/java/tests/support/
DSupport_Format.java22 import java.text.Format;
36 protected void t_FormatWithField(int count, Format format, Object object, in t_FormatWithField()
37 String text, Format.Field field, int begin, int end) { in t_FormatWithField()
59 protected void t_Format(int count, Object object, Format format, in t_Format()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatter.java73 import java.text.Format;
759 Format format = test.toFormat(); in test_toFormat_format()
767 Format format = test.toFormat(); in test_toFormat_format_null()
774 Format format = test.toFormat(); in test_toFormat_format_notTemporal()
782 Format format = test.toFormat(); in test_toFormat_parseObject_String()
791 Format format = test.toFormat(); in test_toFormat_parseObject_String_parseError()
804 Format format = test.toFormat(); in test_toFormat_parseObject_String_parseErrorLongText()
818 Format format = test.toFormat(); in test_toFormat_parseObject_String_null()
826 Format format = test.toFormat(); in test_toFormat_parseObject_StringParsePosition()
838 Format format = test.toFormat(); in test_toFormat_parseObject_StringParsePosition_parseError()
[all …]
/libcore/ojluni/annotations/mmodule/java/text/
DDateFormat.annotated.java50 public abstract class DateFormat extends java.text.Format {
165 public static class Field extends java.text.Format.Field {
/libcore/ojluni/annotations/hiddenapi/java/text/
DNumberFormat.java45 public abstract class NumberFormat extends java.text.Format {
257 public static class Field extends java.text.Format.Field {
DDateFormat.java45 public abstract class DateFormat extends java.text.Format {
231 public static class Field extends java.text.Format.Field {
/libcore/ojluni/annotations/sdk/nullability/java/text/
DNumberFormat.annotated.java50 public abstract class NumberFormat extends java.text.Format {
134 public static class Field extends java.text.Format.Field {
DDateFormat.annotated.java50 public abstract class DateFormat extends java.text.Format {
161 public static class Field extends java.text.Format.Field {
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatter.java76 import java.text.Format;
2043 public Format toFormat() { in toFormat()
2063 public Format toFormat(TemporalQuery<?> parseQuery) { in toFormat()
2092 static class ClassicFormat extends Format {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest4.java214 objToSave = new java.text.Format() { in test_writeObject_Format()
229 if (!(obj instanceof java.text.Format)) in test_writeObject_Format()
231 return save.equals(((java.text.Format) obj).parseObject( in test_writeObject_Format()
236 ((java.text.Format) objToSave).parseObject("Test", null); in test_writeObject_Format()
/libcore/mmodules/core_platform_api/api/legacy_platform/
Dcurrent-api.txt846 public abstract class DateFormat extends java.text.Format {
/libcore/
Dopenjdk_java_files.bp762 "ojluni/src/main/java/java/text/Format.java",