1 /* GENERATED SOURCE. DO NOT MODIFY. */ 2 /* 3 ******************************************************************************* 4 * Copyright (C) 2013-2014, International Business Machines Corporation and * 5 * others. All Rights Reserved. * 6 ******************************************************************************* 7 */ 8 package android.icu.text; 9 10 import java.text.FieldPosition; 11 import java.text.Format.Field; 12 13 /** 14 * Adds the ability to get the decimal digits 15 * @deprecated This API is ICU internal only. 16 * @hide Only a subset of ICU is exposed in Android 17 * @hide draft / provisional / internal are hidden on Android 18 */ 19 @Deprecated 20 public class UFieldPosition extends FieldPosition { 21 private int countVisibleFractionDigits = -1; 22 private long fractionDigits = 0; 23 24 /** 25 * @deprecated This API is ICU internal only. 26 * @hide draft / provisional / internal are hidden on Android 27 */ 28 @Deprecated 29 public UFieldPosition() { 30 super(-1); 31 } 32 33 /** 34 * @deprecated This API is ICU internal only. 35 * @hide draft / provisional / internal are hidden on Android 36 */ 37 @Deprecated 38 public UFieldPosition(int field) { 39 super(field); 40 } 41 42 /** 43 * @deprecated This API is ICU internal only. 44 * @hide draft / provisional / internal are hidden on Android 45 */ 46 @Deprecated 47 public UFieldPosition(Field attribute, int fieldID) { 48 super(attribute, fieldID); 49 } 50 51 /** 52 * @deprecated This API is ICU internal only. 53 * @hide draft / provisional / internal are hidden on Android 54 */ 55 @Deprecated 56 public UFieldPosition(Field attribute) { 57 super(attribute); 58 } 59 60 /** 61 * @deprecated This API is ICU internal only. 62 * @hide draft / provisional / internal are hidden on Android 63 */ 64 @Deprecated 65 public void setFractionDigits(int countVisibleFractionDigits, long fractionDigits ) { 66 this.countVisibleFractionDigits = countVisibleFractionDigits; 67 this.fractionDigits = fractionDigits; 68 } 69 70 /** 71 * @deprecated This API is ICU internal only. 72 * @hide draft / provisional / internal are hidden on Android 73 */ 74 @Deprecated 75 public int getCountVisibleFractionDigits() { 76 return countVisibleFractionDigits; 77 } 78 79 /** 80 * @deprecated This API is ICU internal only. 81 * @hide draft / provisional / internal are hidden on Android 82 */ 83 @Deprecated 84 public long getFractionDigits() { 85 return fractionDigits; 86 } 87 } 88