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) 2014, International Business Machines Corporation and
6  * others. All Rights Reserved.
7  *******************************************************************************
8  */
9 package com.ibm.icu.util;
10 
11 /**
12  * Simple struct-like class for int output parameters.
13  * Like <code>Output&lt;Integer&gt;</code> but without auto-boxing.
14  *
15  * @internal but could become public
16  * @deprecated This API is ICU internal only.
17  */
18 @Deprecated
19 public class OutputInt {
20     /**
21      * The value field.
22      *
23      * @internal
24      * @deprecated This API is ICU internal only.
25      */
26     @Deprecated
27     public int value;
28 
29     /**
30      * Constructs an <code>OutputInt</code> with value 0.
31      *
32      * @internal
33      * @deprecated This API is ICU internal only.
34      */
35     @Deprecated
OutputInt()36     public OutputInt() {
37     }
38 
39     /**
40      * Constructs an <code>OutputInt</code> with the given value.
41      *
42      * @param value the initial value
43      * @internal
44      * @deprecated This API is ICU internal only.
45      */
46     @Deprecated
OutputInt(int value)47     public OutputInt(int value) {
48         this.value = value;
49     }
50 
51     /**
52      * {@inheritDoc}
53      * @internal
54      * @deprecated This API is ICU internal only.
55      */
56     @Deprecated
57     @Override
toString()58     public String toString() {
59         return Integer.toString(value);
60     }
61 }
62