public final class RelativeHourUnitFactory extends Object implements UnitFactory
RelativeHourUnit objects.| Constructor and Description |
|---|
RelativeHourUnitFactory() |
| Modifier and Type | Method and Description |
|---|---|
Unit |
toUnit(String name)
Translates the name of a length unit into a
Unit object |
public Unit toUnit(String name)
UnitFactoryUnit objecttoUnit in interface UnitFactoryname - the name String of a length unit.Unit corresponding to the provided name, or
null if name is null or no
Unit could be found.Copyright © 2012–2017 Emory University. All rights reserved.