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