1 7 8 package java.text; 9 10 15 class DontCareFieldPosition extends FieldPosition { 16 static final FieldPosition INSTANCE = new DontCareFieldPosition (); 18 19 private final Format.FieldDelegate noDelegate = new Format.FieldDelegate () { 20 public void formatted(Format.Field attr, Object value, int start, 21 int end, StringBuffer buffer) { 22 } 23 public void formatted(int fieldID, Format.Field attr, Object value, 24 int start, int end, StringBuffer buffer) { 25 } 26 }; 27 28 private DontCareFieldPosition() { 29 super(0); 30 } 31 32 Format.FieldDelegate getFieldDelegate() { 33 return noDelegate; 34 } 35 } 36 | Popular Tags |