public class

NumberUnit

extends Object
java.lang.Object
   ↳ com.google.api.gbase.client.NumberUnit<T extends java.lang.Number>

Class Overview

A number with a unit.

Summary

Fields
private final String unit
private final T extends Number value
Public Constructors
NumberUnit(T value, String unit)
Creates a new value with a unit.
Public Methods
boolean equals(Object o)
String getUnit()
Gets the unit.
T getValue()
Gets the value.
int hashCode()
String toString()
Gets the standard string representation for such an object: value " " unit
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private final String unit

private final T extends Number value

Public Constructors

public NumberUnit (T value, String unit)

Creates a new value with a unit.

Parameters
value
unit

Public Methods

public boolean equals (Object o)

Parameters
o

public String getUnit ()

Gets the unit.

public T getValue ()

Gets the value.

public int hashCode ()

public String toString ()

Gets the standard string representation for such an object: value " " unit