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

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

Go to download

International Component for Unicode for Java (ICU4J) is a mature, widely used Java library providing Unicode and Globalization support

There is a newer version: 77.1
Show newest version
/*
 *******************************************************************************
 * Copyright (C) 2011, International Business Machines Corporation and         *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
 */
package com.ibm.icu.util;

/**
 * Simple struct-like class for output parameters.
 * @param  The type of the parameter.
 * @draft ICU 4.8
 * @provisional This API might change or be removed in a future release.
 */
public class Output {
    /**
     * The value field
     * @draft ICU 4.8
     * @provisional This API might change or be removed in a future release.
     */
    public T value;

    /**
     * {@inheritDoc}
     * @draft ICU 4.8
     * @provisional This API might change or be removed in a future release.
     */
    public String toString() {
        return value == null ? "null" : value.toString();
    }

    /**
     * Constructs an empty Output
     * @draft ICU 4.8
     * @provisional This API might change or be removed in a future release.
     */
    public Output() {
        
    }

    /**
     * Constructs an Output withe the given value.
     * @param value the initial value
     * @draft ICU 4.8
     * @provisional This API might change or be removed in a future release.
     */
    public Output(T value) {
        this.value = value;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy