Uses of Class
org.djunits.unit.Unit.Builder
-
Uses of Unit.Builder in org.djunits.unit
Modifier and TypeClassDescriptionstatic class
AbsoluteLinearUnit.Builder<AU extends AbsoluteLinearUnit<AU,
RU>, RU extends Unit<RU>> Builder for the AbsoluteUnit.Modifier and TypeMethodDescriptionUnit.makeBuilder()
Create a Builder.Unit.Builder.setAdditionalAbbreviations
(String... newAdditionalAbbreviations) Set the additional abbreviations.Unit.Builder.setDefaultDisplayAbbreviation
(String newDefaultDisplayAbbreviation) Set the default display abbreviation.Unit.Builder.setDefaultTextualAbbreviation
(String newDefaultTextualAbbreviation) Set the default textual abbreviation.Unit.Builder.setGenerated
(boolean newGenerated) Set the generated flag.Set the id of the unit that this builder builds.Set the name.Unit.Builder.setQuantity
(Quantity<U> newQuantity) Set the unit base.Set the scale.Unit.Builder.setSiPrefixes
(SIPrefixes newSiPrefixes, double power) Set whether SI prefixes, ranging from yotta (y) to yocto (Y), are allowed.Unit.Builder.setUnitSystem
(UnitSystem newUnitSystem) Set the unit system.Modifier and TypeMethodDescriptionAbsoluteLinearUnit.build
(Unit.Builder<AU> builder) Unit.build
(Unit.Builder<U> builder) Build the unit, using the information of the provided builder class.