All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibm.icu.util.OutputInt Maven / Gradle / Ivy

There is a newer version: 2.12.15
Show newest version
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html#License
/*
 *******************************************************************************
 * 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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy