1/* GENERATED SOURCE. DO NOT MODIFY. */
2// © 2016 and later: Unicode, Inc. and others.
3// License & terms of use: http://www.unicode.org/copyright.html#License
4/*
5 *******************************************************************************
6 * Copyright (C) 2011-2016, International Business Machines Corporation and    *
7 * others. All Rights Reserved.                                                *
8 *******************************************************************************
9 */
10package android.icu.util;
11
12/**
13 * Simple struct-like class for output parameters.
14 * @param <T> The type of the parameter.
15 */
16public class Output<T> {
17    /**
18     * The value field
19     */
20    public T value;
21
22    /**
23     * {@inheritDoc}
24     */
25    @Override
26    public String toString() {
27        return value == null ? "null" : value.toString();
28    }
29
30    /**
31     * Constructs an empty <code>Output</code>
32     */
33    public Output() {
34
35    }
36
37    /**
38     * Constructs an <code>Output</code> with the given value.
39     * @param value the initial value
40     */
41    public Output(T value) {
42        this.value = value;
43    }
44}
45