protected static class AbstractSystemOfUnits.Helper extends Object
Modifier | Constructor and Description |
---|---|
protected |
Helper() |
Modifier and Type | Method and Description |
---|---|
static <U extends javax.measure.Unit<?>> |
addUnit(Set<javax.measure.Unit<?>> units,
U unit,
String name)
Adds a new named unit to the collection.
|
static <U extends javax.measure.Unit<?>> |
addUnit(Set<javax.measure.Unit<?>> units,
U unit,
String name,
String symbol)
Adds a new named unit to the collection.
|
static <U extends javax.measure.Unit<?>> |
addUnit(Set<javax.measure.Unit<?>> units,
U unit,
String name,
String symbol,
UnitStyle style)
Adds a new named unit to the collection.
|
static <U extends javax.measure.Unit<?>> |
addUnit(Set<javax.measure.Unit<?>> units,
U unit,
String text,
UnitStyle style)
Adds a new labeled unit to the set.
|
protected Helper()
public static <U extends javax.measure.Unit<?>> U addUnit(Set<javax.measure.Unit<?>> units, U unit, String name)
unit
- the unit being added.name
- the name of the unit.unit
.public static <U extends javax.measure.Unit<?>> U addUnit(Set<javax.measure.Unit<?>> units, U unit, String name, String symbol)
unit
- the unit being added.name
- the name of the unit.name
- the symbol of the unit.unit
.public static <U extends javax.measure.Unit<?>> U addUnit(Set<javax.measure.Unit<?>> units, U unit, String name, String symbol, UnitStyle style)
unit
- the unit being added.name
- the name of the unit.name
- the symbol of the unit.style
- style of the unit.unit
.public static <U extends javax.measure.Unit<?>> U addUnit(Set<javax.measure.Unit<?>> units, U unit, String text, UnitStyle style)
units
- the set to add to.unit
- the unit being added.text
- the text for the unit.style
- style of the unit.unit
.Copyright © 2005-2019 Units of Measurement project. All Rights Reserved.