summaryrefslogtreecommitdiff
path: root/android_icu4j/src/main/java/android/icu/util/Output.java
blob: c07ce508bee814045a551e92985609602f28fdfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* GENERATED SOURCE. DO NOT MODIFY. */
/*
 *******************************************************************************
 * Copyright (C) 2011-2016, International Business Machines Corporation and    *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
 */
package android.icu.util;

/**
 * Simple struct-like class for output parameters.
 * @param <T> The type of the parameter.
 */
public class Output<T> {
    /**
     * The value field
     */
    public T value;

    /**
     * {@inheritDoc}
     */
    public String toString() {
        return value == null ? "null" : value.toString();
    }

    /**
     * Constructs an empty <code>Output</code>
     */
    public Output() {
        
    }

    /**
     * Constructs an <code>Output</code> with the given value.
     * @param value the initial value
     */
    public Output(T value) {
        this.value = value;
    }
}