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