Uses of Class
org.djunits.unit.Unit.Builder
Package | Description |
---|---|
org.djunits.unit |
Units for version 4 of DJUNITS.
|
-
Uses of Unit.Builder in org.djunits.unit
Subclasses of Unit.Builder in org.djunits.unit Modifier and Type Class Description static class
AbsoluteLinearUnit.Builder<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>
Builder for the AbsoluteUnit.Methods in org.djunits.unit that return Unit.Builder Modifier and Type Method Description Unit.Builder<U>
Unit. makeBuilder()
Create a Builder.Unit.Builder<U>
Unit.Builder. setAdditionalAbbreviations(String... newAdditionalAbbreviations)
Set the additional abbreviations.Unit.Builder<U>
Unit.Builder. setDefaultDisplayAbbreviation(String newDefaultDisplayAbbreviation)
Set the default display abbreviation.Unit.Builder<U>
Unit.Builder. setDefaultTextualAbbreviation(String newDefaultTextualAbbreviation)
Set the default textual abbreviation.Unit.Builder<U>
Unit.Builder. setGenerated(boolean newGenerated)
Set the generated flag.Unit.Builder<U>
Unit.Builder. setId(String newId)
Set the id of the unit that this builder builds.Unit.Builder<U>
Unit.Builder. setName(String newName)
Set the name.Unit.Builder<U>
Unit.Builder. setQuantity(Quantity<U> newQuantity)
Set the unit base.Unit.Builder<U>
Unit.Builder. setScale(Scale newScale)
Set the scale.Unit.Builder<U>
Unit.Builder. setSiPrefixes(SIPrefixes newSiPrefixes, double power)
Set whether SI prefixes, ranging from yotta (y) to yocto (Y), are allowed.Unit.Builder<U>
Unit.Builder. setUnitSystem(UnitSystem newUnitSystem)
Set the unit system.Methods in org.djunits.unit with parameters of type Unit.Builder Modifier and Type Method Description AU
AbsoluteLinearUnit. build(Unit.Builder<AU> builder)
Build the unit, using the information of the provided builder class.U
Unit. build(Unit.Builder<U> builder)
Build the unit, using the information of the provided builder class.