com.ibm.icu.util.Output 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) 2011-2016, 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.
* @stable ICU 4.8
*/
public class Output {
/**
* The value field
* @stable ICU 4.8
*/
public T value;
/**
* {@inheritDoc}
* @stable ICU 4.8
*/
@Override
public String toString() {
return value == null ? "null" : value.toString();
}
/**
* Constructs an empty Output
* @stable ICU 4.8
*/
public Output() {
}
/**
* Constructs an Output
with the given value.
* @param value the initial value
* @stable ICU 4.8
*/
public Output(T value) {
this.value = value;
}
}