2 *******************************************************************************
3 * Copyright (C) 2011-2012, International Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 *******************************************************************************
7 package com.ibm.icu.util;
10 * Simple struct-like class for output parameters.
11 * @param <T> The type of the parameter.
14 public class Output<T> {
25 public String toString() {
26 return value == null ? "null" : value.toString();
30 * Constructs an empty <code>Output</code>
38 * Constructs an <code>Output</code> withe the given value.
39 * @param value the initial value
42 public Output(T value) {