public class

Output<T>

extends java.lang.Object

 java.lang.Object

↳androidx.core.i18n.messageformat_icu.util.Output<T>

Gradle dependencies

compile group: 'androidx.core', name: 'core-i18n', version: '1.0.0-alpha01'

  • groupId: androidx.core
  • artifactId: core-i18n
  • version: 1.0.0-alpha01

Artifact androidx.core:core-i18n:1.0.0-alpha01 it located at Google repository (https://maven.google.com/)

Overview

Simple struct-like class for output parameters.

Summary

Fields
public java.lang.Objectvalue

The value field icu_annot::stable ICU 4.8

Constructors
publicOutput()

Constructs an empty Output icu_annot::stable ICU 4.8

publicOutput(java.lang.Object value)

Constructs an Output withe the given value.

Methods
public java.lang.StringtoString()

icu_annot::stable ICU 4.8

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Fields

public java.lang.Object value

The value field icu_annot::stable ICU 4.8

Constructors

public Output()

Constructs an empty Output icu_annot::stable ICU 4.8

public Output(java.lang.Object value)

Constructs an Output withe the given value.

Parameters:

value: the initial value icu_annot::stable ICU 4.8

Methods

public java.lang.String toString()

icu_annot::stable ICU 4.8

Source

/*
 *******************************************************************************
 * Copyright (C) 2011-2012, International Business Machines Corporation and    *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
 */
package androidx.core.i18n.messageformat_icu.util;

import androidx.annotation.RestrictTo;

/**
 * Simple struct-like class for output parameters.
 * @param <T> The type of the parameter.
 * icu_annot::stable ICU 4.8
 */
@RestrictTo(RestrictTo.Scope.LIBRARY)
public class Output<T> {
    /**
     * The value field
     * icu_annot::stable ICU 4.8
     */
    public T value;

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

    /**
     * Constructs an empty <code>Output</code>
     * icu_annot::stable ICU 4.8
     */
    public Output() {
        
    }

    /**
     * Constructs an <code>Output</code> withe the given value.
     * @param value the initial value
     * icu_annot::stable ICU 4.8
     */
    public Output(T value) {
        this.value = value;
    }
}