• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 ohos.global.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 exposed on OHOS
19  * @hide draft / provisional / internal are hidden on OHOS
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 OHOS
29      */
30     @Deprecated
UFieldPosition()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 OHOS
38      */
39     @Deprecated
UFieldPosition(int field)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 OHOS
47      */
48     @Deprecated
UFieldPosition(Field attribute, int fieldID)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 OHOS
56      */
57     @Deprecated
UFieldPosition(Field attribute)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 OHOS
65      */
66     @Deprecated
setFractionDigits(int countVisibleFractionDigits, long fractionDigits )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 OHOS
75      */
76     @Deprecated
getCountVisibleFractionDigits()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 OHOS
84      */
85     @Deprecated
getFractionDigits()86     public long getFractionDigits() {
87         return fractionDigits;
88     }
89 }
90