com.ibm.icu.util.OutputInt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of icu4j Show documentation
Show all versions of icu4j Show documentation
International Component for Unicode for Java (ICU4J) is a mature, widely used Java library
providing Unicode and Globalization support
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
*******************************************************************************
* Copyright (C) 2014, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*/
package com.ibm.icu.util;
/**
* Simple struct-like class for int output parameters.
* Like Output<Integer>
but without auto-boxing.
*
* @internal but could become public
* @deprecated This API is ICU internal only.
*/
@Deprecated
public class OutputInt {
/**
* The value field.
*
* @internal
* @deprecated This API is ICU internal only.
*/
@Deprecated
public int value;
/**
* Constructs an OutputInt
with value 0.
*
* @internal
* @deprecated This API is ICU internal only.
*/
@Deprecated
public OutputInt() {
}
/**
* Constructs an OutputInt
with the given value.
*
* @param value the initial value
* @internal
* @deprecated This API is ICU internal only.
*/
@Deprecated
public OutputInt(int value) {
this.value = value;
}
/**
* {@inheritDoc}
* @internal
* @deprecated This API is ICU internal only.
*/
@Deprecated
@Override
public String toString() {
return Integer.toString(value);
}
}