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