package org.djunits.demo.examples; import java.util.Map; import org.djunits.unit.AreaUnit; import org.djunits.unit.ElectricalChargeUnit; import org.djunits.unit.FrequencyUnit; import org.djunits.unit.LengthUnit; import org.djunits.unit.LinearDensityUnit; import org.djunits.unit.MassUnit; import org.djunits.unit.Unit; import org.djunits.unit.VolumeUnit; /** * UnitPrefix.java. *
* Copyright (c) 2019-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
* BSD-style license. See DJUNITS License.
*
* @author Alexander Verbraeck
*/
public final class UnitPrefix
{
/** */
private UnitPrefix()
{
// utility class
}
/**
* @param args String[]; not used
*/
public static void main(final String[] args)
{
print(LengthUnit.BASE.getUnitsByAbbreviation());
print(AreaUnit.BASE.getUnitsByAbbreviation());
print(VolumeUnit.BASE.getUnitsByAbbreviation());
print(ElectricalChargeUnit.BASE.getUnitsByAbbreviation());
print(MassUnit.BASE.getUnitsByAbbreviation());
print(LinearDensityUnit.BASE.getUnitsByAbbreviation());
print(FrequencyUnit.BASE.getUnitsByAbbreviation());
}
/**
* @param unitMap Map<String,? extends Unit<?>>; the map to print
*/
private static void print(final Map