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