public class FloatUnit extends Object implements CloneableType
| Constructor and Description |
|---|
FloatUnit(float value,
String units) |
FloatUnit(String source)
Creates a new float unit by parsing a String value
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Duplicates the object.
|
boolean |
equals(Object o) |
String |
getUnits()
Returns the units.
|
float |
getValue()
Returns the float value.
|
String |
toString()
Returns a String representation of the object.
|
public FloatUnit(String source)
source - String value to parsepublic FloatUnit(float value,
String units)
value - float valueunits - Units represented, or null.public String getUnits()
public float getValue()
public Object clone()
clone in interface CloneableTypeclone in class Objectpublic String toString()
Copyright © 2021. All rights reserved.