View Javadoc
1   package org.djutils.serialization;
2   
3   import java.io.Serializable;
4   import java.util.HashMap;
5   import java.util.Map;
6   
7   import org.djunits.unit.AbsoluteTemperatureUnit;
8   import org.djunits.unit.AbsorbedDoseUnit;
9   import org.djunits.unit.AccelerationUnit;
10  import org.djunits.unit.AmountOfSubstanceUnit;
11  import org.djunits.unit.AngleUnit;
12  import org.djunits.unit.AreaUnit;
13  import org.djunits.unit.CatalyticActivityUnit;
14  import org.djunits.unit.DensityUnit;
15  import org.djunits.unit.DimensionlessUnit;
16  import org.djunits.unit.DirectionUnit;
17  import org.djunits.unit.DurationUnit;
18  import org.djunits.unit.ElectricalCapacitanceUnit;
19  import org.djunits.unit.ElectricalChargeUnit;
20  import org.djunits.unit.ElectricalConductanceUnit;
21  import org.djunits.unit.ElectricalCurrentUnit;
22  import org.djunits.unit.ElectricalInductanceUnit;
23  import org.djunits.unit.ElectricalPotentialUnit;
24  import org.djunits.unit.ElectricalResistanceUnit;
25  import org.djunits.unit.EnergyUnit;
26  import org.djunits.unit.EquivalentDoseUnit;
27  import org.djunits.unit.FlowMassUnit;
28  import org.djunits.unit.FlowVolumeUnit;
29  import org.djunits.unit.ForceUnit;
30  import org.djunits.unit.FrequencyUnit;
31  import org.djunits.unit.IlluminanceUnit;
32  import org.djunits.unit.LengthUnit;
33  import org.djunits.unit.LinearDensityUnit;
34  import org.djunits.unit.LuminousFluxUnit;
35  import org.djunits.unit.LuminousIntensityUnit;
36  import org.djunits.unit.MagneticFluxDensityUnit;
37  import org.djunits.unit.MagneticFluxUnit;
38  import org.djunits.unit.MassUnit;
39  import org.djunits.unit.PositionUnit;
40  import org.djunits.unit.PowerUnit;
41  import org.djunits.unit.PressureUnit;
42  import org.djunits.unit.RadioActivityUnit;
43  import org.djunits.unit.SolidAngleUnit;
44  import org.djunits.unit.SpeedUnit;
45  import org.djunits.unit.TemperatureUnit;
46  import org.djunits.unit.TimeUnit;
47  import org.djunits.unit.TorqueUnit;
48  import org.djunits.unit.Unit;
49  import org.djunits.unit.VolumeUnit;
50  import org.djutils.exceptions.Throw;
51  
52  /**
53   * DJUNITS Display Types to be used as part of a Sim0MQ message.
54   * <p>
55   * Copyright (c) 2016-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
56   * BSD-style license. See <a href="https://sim0mq.org/docs/current/license.html">Sim0MQ License</a>.
57   * </p>
58   * @author <a href="https://www.tudelft.nl/averbraeck">Alexander Verbraeck</a>
59   */
60  public class DisplayType implements Serializable
61  {
62      /** */
63      private static final long serialVersionUID = 20170314L;
64  
65      /** the unit types from number to type. */
66      private static Map<SerializationUnits, Map<Integer, DisplayType>> codeDisplayTypeMap = new HashMap<>();
67  
68      /** the unit types from class to type. */
69      private static Map<Unit<?>, DisplayType> djunitsDisplayTypeMap = new HashMap<>();
70  
71      /** the code of the unit as a byte. */
72      private final int code;
73  
74      /** the corresponding unit data type. */
75      private final SerializationUnits unitType;
76  
77      /** the djunits data type. */
78      private final Unit<?> djunitsType;
79  
80      /** the unit name. */
81      private final String name;
82  
83      /** the unit description. */
84      private final String abbreviation;
85  
86      /* ================================================= DIMENSIONLESS ================================================= */
87  
88      /** Dimensionless.SI unit type with code 0. */
89      public static final DisplayType DIMENSIONLESS_SI =
90              new DisplayType(SerializationUnits.DIMENSIONLESS, 0, DimensionlessUnit.SI, "SI", "[]");
91  
92      /* ================================================= ACCELERATION ================================================== */
93  
94      /** Acceleration.METER_PER_SECOND_2 unit type with code 0. */
95      public static final DisplayTypeayType ACCELERATION_METER_PER_SECOND_2 = new DisplayType(SerializationUnits.ACCELERATION, 0,
96              AccelerationUnit.METER_PER_SECOND_2, "METER_PER_SECOND_2", "m/s2");
97  
98      /** Acceleration.KM_PER_HOUR_2 unit type with code 1. */
99      public static final DisplayType ACCELERATION_KM_PER_HOUR_2 =
100             new DisplayType(SerializationUnits.ACCELERATION, 1, AccelerationUnit.KM_PER_HOUR_2, "KM_PER_HOUR_2", "km/h2");
101 
102     /** Acceleration.INCH_PER_SECOND_2 unit type with code 2. */
103     public static final DisplayTypelayType ACCELERATION_INCH_PER_SECOND_2 = new DisplayType(SerializationUnits.ACCELERATION, 2,
104             AccelerationUnit.INCH_PER_SECOND_2, "INCH_PER_SECOND_2", "in/s2");
105 
106     /** Acceleration.FOOT_PER_SECOND_2 unit type with code 3. */
107     public static final DisplayTypelayType ACCELERATION_FOOT_PER_SECOND_2 = new DisplayType(SerializationUnits.ACCELERATION, 3,
108             AccelerationUnit.FOOT_PER_SECOND_2, "FOOT_PER_SECOND_2", "ft/s2");
109 
110     /** Acceleration.MILE_PER_HOUR_2 unit type with code 4. */
111     public static final DisplayType ACCELERATION_MILE_PER_HOUR_2 =
112             new DisplayType(SerializationUnits.ACCELERATION, 4, AccelerationUnit.MILE_PER_HOUR_2, "MILE_PER_HOUR_2", "mi/h2");
113 
114     /** Acceleration.MILE_PER_HOUR_PER_SECOND unit type with code 5. */
115     public static final DisplayType ACCELERATION_MILE_PER_HOUR_PER_SECOND = new DisplayType(SerializationUnits.ACCELERATION, 5,
116             AccelerationUnit.MILE_PER_HOUR_PER_SECOND, "MILE_PER_HOUR_PER_SECOND", "mi/h/s");
117 
118     /** Acceleration.KNOT_PER_SECOND unit type with code 6. */
119     public static final DisplayType ACCELERATION_KNOT_PER_SECOND =
120             new DisplayType(SerializationUnits.ACCELERATION, 6, AccelerationUnit.KNOT_PER_SECOND, "KNOT_PER_SECOND", "kt/s");
121 
122     /** Acceleration.GAL unit type with code 7. */
123     public static final DisplayType ACCELERATION_GAL =
124             new DisplayType(SerializationUnits.ACCELERATION, 7, AccelerationUnit.GAL, "GAL", "gal");
125 
126     /** Acceleration.STANDARD_GRAVITY unit type with code 8. */
127     public static final DisplayType ACCELERATION_STANDARD_GRAVITY =
128             new DisplayType(SerializationUnits.ACCELERATION, 8, AccelerationUnit.STANDARD_GRAVITY, "STANDARD_GRAVITY", "g");
129 
130     /** Acceleration.MILE_PER_SECOND_2 unit type with code 9. */
131     public static final DisplayTypelayType ACCELERATION_MILE_PER_SECOND_2 = new DisplayType(SerializationUnits.ACCELERATION, 9,
132             AccelerationUnit.MILE_PER_SECOND_2, "MILE_PER_SECOND_2", "mi/s2");
133 
134     /* ================================================== SOLIDANGLE =================================================== */
135 
136     /** SolidAngle.STERADIAN unit type with code 0. */
137     public static final DisplayType SOLIDANGLE_STERADIAN =
138             new DisplayType(SerializationUnits.SOLIDANGLE, 0, SolidAngleUnit.STERADIAN, "STERADIAN", "sr");
139 
140     /** SolidAngle.SQUARE_DEGREE unit type with code 1. */
141     public static final DisplayType SOLIDANGLE_SQUARE_DEGREE =
142             new DisplayType(SerializationUnits.SOLIDANGLE, 1, SolidAngleUnit.SQUARE_DEGREE, "SQUARE_DEGREE", "sq.deg");
143 
144     /* ===================================================== ANGLE ===================================================== */
145 
146     /** Angle.RADIAN unit type with code 0. */
147     public static final DisplayType ANGLE_RADIAN =
148             new DisplayType(SerializationUnits.ANGLE, 0, AngleUnit.RADIAN, "RADIAN", "rad");
149 
150     /** Angle.ARCMINUTE unit type with code 1. */
151     public static final DisplayType ANGLE_ARCMINUTE =
152             new DisplayType(SerializationUnits.ANGLE, 1, AngleUnit.ARCMINUTE, "ARCMINUTE", "arcmin");
153 
154     /** Angle.ARCSECOND unit type with code 2. */
155     public static final DisplayType ANGLE_ARCSECOND =
156             new DisplayType(SerializationUnits.ANGLE, 2, AngleUnit.ARCSECOND, "ARCSECOND", "arcsec");
157 
158     /** Angle.CENTESIMAL_ARCMINUTE unit type with code 3. */
159     public static final DisplayTypeDisplayType ANGLE_CENTESIMAL_ARCMINUTE = new DisplayType(SerializationUnits.ANGLE, 3,
160             AngleUnit.CENTESIMAL_ARCMINUTE, "CENTESIMAL_ARCMINUTE", "centesimal_arcmin");
161 
162     /** Angle.CENTESIMAL_ARCSECOND unit type with code 4. */
163     public static final DisplayTypeDisplayType ANGLE_CENTESIMAL_ARCSECOND = new DisplayType(SerializationUnits.ANGLE, 4,
164             AngleUnit.CENTESIMAL_ARCSECOND, "CENTESIMAL_ARCSECOND", "centesimal_arcsec");
165 
166     /** Angle.DEGREE unit type with code 5. */
167     public static final DisplayType ANGLE_DEGREE =
168             new DisplayType(SerializationUnits.ANGLE, 5, AngleUnit.DEGREE, "DEGREE", "deg");
169 
170     /** Angle.GRAD unit type with code 6. */
171     public static final DisplayTypeml#DisplayType">DisplayType ANGLE_GRAD = new DisplayType(SerializationUnits.ANGLE, 6, AngleUnit.GRAD, "GRAD", "grad");
172 
173     /** Angle.PERCENT unit type with code 7. */
174     public static final DisplayType ANGLE_PERCENT =
175             new DisplayType(SerializationUnits.ANGLE, 7, AngleUnit.PERCENT, "PERCENT", "%");
176 
177     /* =================================================== DIRECTION =================================================== */
178 
179     /** Direction.NORTH_RADIAN unit type with code 0. */
180     public static final DisplayType DIRECTION_NORTH_RADIAN =
181             new DisplayType(SerializationUnits.DIRECTION, 0, DirectionUnit.NORTH_RADIAN, "NORTH_RADIAN", "rad(N)");
182 
183     /** Direction.NORTH_DEGREE unit type with code 1. */
184     public static final DisplayType DIRECTION_NORTH_DEGREE =
185             new DisplayType(SerializationUnits.DIRECTION, 1, DirectionUnit.NORTH_DEGREE, "NORTH_DEGREE", "deg(N)");
186 
187     /** Direction.EAST_RADIAN unit type with code 2. */
188     public static final DisplayType DIRECTION_EAST_RADIAN =
189             new DisplayType(SerializationUnits.DIRECTION, 2, DirectionUnit.EAST_RADIAN, "EAST_RADIAN", "rad(E)");
190 
191     /** Direction.EAST_DEGREE unit type with code 2. */
192     public static final DisplayType DIRECTION_EAST_DEGREE =
193             new DisplayType(SerializationUnits.DIRECTION, 3, DirectionUnit.EAST_DEGREE, "EAST_DEGREE", "deg(E)");
194 
195     /* ===================================================== AREA ====================================================== */
196 
197     /** Area.SQUARE_METER unit type with code 0. */
198     public static final DisplayType AREA_SQUARE_METER =
199             new DisplayType(SerializationUnits.AREA, 0, AreaUnit.SQUARE_METER, "SQUARE_METER", "m2");
200 
201     /** Area.SQUARE_ATTOMETER unit type with code 1. */
202     public static final DisplayType AREA_SQUARE_ATTOMETER =
203             new DisplayType(SerializationUnits.AREA, 1, AreaUnit.BASE.of("am^2"), "SQUARE_ATTOMETER", "am2");
204 
205     /** Area.SQUARE_FEMTOMETER unit type with code 2. */
206     public static final DisplayType AREA_SQUARE_FEMTOMETER =
207             new DisplayType(SerializationUnits.AREA, 2, AreaUnit.BASE.of("fm^2"), "SQUARE_FEMTOMETER", "fm2");
208 
209     /** Area.SQUARE_PICOMETER unit type with code 3. */
210     public static final DisplayType AREA_SQUARE_PICOMETER =
211             new DisplayType(SerializationUnits.AREA, 3, AreaUnit.BASE.of("pm^2"), "SQUARE_PICOMETER", "pm2");
212 
213     /** Area.SQUARE_NANOMETER unit type with code 4. */
214     public static final DisplayType AREA_SQUARE_NANOMETER =
215             new DisplayType(SerializationUnits.AREA, 4, AreaUnit.BASE.of("nm^2"), "SQUARE_NANOMETER", "nm2");
216 
217     /** Area.SQUARE_MICROMETER unit type with code 5. */
218     public static final DisplayType AREA_SQUARE_MICROMETER =
219             new DisplayType(SerializationUnits.AREA, 5, AreaUnit.BASE.of("μm^2"), "SQUARE_MICROMETER", "μm2");
220 
221     /** Area.SQUARE_MILLIMETER unit type with code 6. */
222     public static final DisplayType AREA_SQUARE_MILLIMETER =
223             new DisplayType(SerializationUnits.AREA, 6, AreaUnit.SQUARE_MILLIMETER, "SQUARE_MILLIMETER", "mm2");
224 
225     /** Area.SQUARE_CENTIMETER unit type with code 7. */
226     public static final DisplayType AREA_SQUARE_CENTIMETER =
227             new DisplayType(SerializationUnits.AREA, 7, AreaUnit.SQUARE_CENTIMETER, "SQUARE_CENTIMETER", "cm2");
228 
229     /** Area.SQUARE_DECIMETER unit type with code 8. */
230     public static final DisplayType AREA_SQUARE_DECIMETER =
231             new DisplayType(SerializationUnits.AREA, 8, AreaUnit.SQUARE_DECIMETER, "SQUARE_DECIMETER", "dm2");
232 
233     /** Area.SQUARE_DEKAMETER unit type with code 9. */
234     public static final DisplayType AREA_SQUARE_DEKAMETER =
235             new DisplayType(SerializationUnits.AREA, 9, AreaUnit.BASE.of("dam^2"), "SQUARE_DEKAMETER", "dam2");
236 
237     /** Area.SQUARE_HECTOMETER unit type with code 10. */
238     public static final DisplayType AREA_SQUARE_HECTOMETER =
239             new DisplayType(SerializationUnits.AREA, 10, AreaUnit.SQUARE_HECTOMETER, "SQUARE_HECTOMETER", "hm2");
240 
241     /** Area.SQUARE_KILOMETER unit type with code 11. */
242     public static final DisplayType AREA_SQUARE_KILOMETER =
243             new DisplayType(SerializationUnits.AREA, 11, AreaUnit.SQUARE_KILOMETER, "SQUARE_KILOMETER", "km2");
244 
245     /** Area.SQUARE_MEGAMETER unit type with code 12. */
246     public static final DisplayType AREA_SQUARE_MEGAMETER =
247             new DisplayType(SerializationUnits.AREA, 12, AreaUnit.BASE.of("Mm^2"), "SQUARE_MEGAMETER", "Mm2");
248 
249     /** Area.SQUARE_INCH unit type with code 13. */
250     public static final DisplayType AREA_SQUARE_INCH =
251             new DisplayType(SerializationUnits.AREA, 13, AreaUnit.SQUARE_INCH, "SQUARE_INCH", "in2");
252 
253     /** Area.SQUARE_FOOT unit type with code 14. */
254     public static final DisplayType AREA_SQUARE_FOOT =
255             new DisplayType(SerializationUnits.AREA, 14, AreaUnit.SQUARE_FOOT, "SQUARE_FOOT", "ft2");
256 
257     /** Area.SQUARE_YARD unit type with code 15. */
258     public static final DisplayType AREA_SQUARE_YARD =
259             new DisplayType(SerializationUnits.AREA, 15, AreaUnit.SQUARE_YARD, "SQUARE_YARD", "yd2");
260 
261     /** Area.SQUARE_MILE unit type with code 16. */
262     public static final DisplayType AREA_SQUARE_MILE =
263             new DisplayType(SerializationUnits.AREA, 16, AreaUnit.SQUARE_MILE, "SQUARE_MILE", "mi2");
264 
265     /** Area.SQUARE_NAUTICAL_MILE unit type with code 17. */
266     public static final DisplayType AREA_SQUARE_NAUTICAL_MILE =
267             new DisplayType(SerializationUnits.AREA, 17, AreaUnit.SQUARE_NAUTICAL_MILE, "SQUARE_NAUTICAL_MILE", "NM2");
268 
269     /** Area.ACRE unit type with code 18. */
270     public static final DisplayTypetml#DisplayType">DisplayType AREA_ACRE = new DisplayType(SerializationUnits.AREA, 18, AreaUnit.ACRE, "ACRE", "acre");
271 
272     /** Area.ARE unit type with code 19. */
273     public static final DisplayTypehtml#DisplayType">DisplayType AREA_ARE = new DisplayType(SerializationUnits.AREA, 19, AreaUnit.ARE, "ARE", "a");
274 
275     /** Area.CENTIARE unit type with code 20. */
276     public static final DisplayType AREA_CENTIARE =
277             new DisplayType(SerializationUnits.AREA, 20, AreaUnit.CENTIARE, "CENTIARE", "ca");
278 
279     /** Area.HECTARE unit type with code 21. */
280     public static final DisplayType AREA_HECTARE =
281             new DisplayType(SerializationUnits.AREA, 21, AreaUnit.HECTARE, "HECTARE", "ha");
282 
283     /* ==================================================== DENSITY ==================================================== */
284 
285     /** Density.KG_PER_METER_3 unit type with code 0. */
286     public static final DisplayType DENSITY_KG_PER_METER_3 =
287             new DisplayType(SerializationUnits.DENSITY, 0, DensityUnit.KG_PER_METER_3, "KG_PER_METER_3", "kg/m3");
288 
289     /** Density.GRAM_PER_CENTIMETER_3 unit type with code 1. */
290     public static final DisplayType DENSITY_GRAM_PER_CENTIMETER_3 =
291             new DisplayType(SerializationUnits.DENSITY, 1, DensityUnit.GRAM_PER_CENTIMETER_3, "GRAM_PER_CENTIMETER_3", "g/cm3");
292 
293     /* =============================================== ELECTRICALCHARGE ================================================ */
294 
295     /** ElectricalCharge.COULOMB unit type with code 0. */
296     public static final DisplayType ELECTRICALCHARGE_COULOMB =
297             new DisplayType(SerializationUnits.ELECTRICALCHARGE, 0, ElectricalChargeUnit.COULOMB, "COULOMB", "C");
298 
299     /** ElectricalCharge.PICOCOULOMB unit type with code 1. */
300     public static final DisplayTypesplayType ELECTRICALCHARGE_PICOCOULOMB = new DisplayType(SerializationUnits.ELECTRICALCHARGE, 1,
301             ElectricalChargeUnit.BASE.getUnitByAbbreviation("pC"), "PICOCOULOMB", "pC");
302 
303     /** ElectricalCharge.NANOCOULOMB unit type with code 2. */
304     public static final DisplayTypesplayType ELECTRICALCHARGE_NANOCOULOMB = new DisplayType(SerializationUnits.ELECTRICALCHARGE, 2,
305             ElectricalChargeUnit.BASE.getUnitByAbbreviation("nC"), "NANOCOULOMB", "nC");
306 
307     /** ElectricalCharge.MICROCOULOMB unit type with code 3. */
308     public static final DisplayType ELECTRICALCHARGE_MICROCOULOMB =
309             new DisplayType(SerializationUnits.ELECTRICALCHARGE, 3, ElectricalChargeUnit.MICROCOULOMB, "MICROCOULOMB", "μC");
310 
311     /** ElectricalCharge.MILLICOULOMB unit type with code 4. */
312     public static final DisplayType ELECTRICALCHARGE_MILLICOULOMB =
313             new DisplayType(SerializationUnits.ELECTRICALCHARGE, 4, ElectricalChargeUnit.MILLICOULOMB, "MILLICOULOMB", "mC");
314 
315     /** ElectricalCharge.ABCOULOMB unit type with code 5. */
316     public static final DisplayType ELECTRICALCHARGE_ABCOULOMB =
317             new DisplayType(SerializationUnits.ELECTRICALCHARGE, 5, ElectricalChargeUnit.ABCOULOMB, "ABCOULOMB", "abC");
318 
319     /** ElectricalCharge.ATOMIC_UNIT unit type with code 6. */
320     public static final DisplayType ELECTRICALCHARGE_ATOMIC_UNIT =
321             new DisplayType(SerializationUnits.ELECTRICALCHARGE, 6, ElectricalChargeUnit.ATOMIC_UNIT, "ATOMIC_UNIT", "au");
322 
323     /** ElectricalCharge.EMU unit type with code 7. */
324     public static final DisplayType ELECTRICALCHARGE_EMU =
325             new DisplayType(SerializationUnits.ELECTRICALCHARGE, 7, ElectricalChargeUnit.EMU, "EMU", "emu");
326 
327     /** ElectricalCharge.ESU unit type with code 8. */
328     public static final DisplayType ELECTRICALCHARGE_ESU =
329             new DisplayType(SerializationUnits.ELECTRICALCHARGE, 8, ElectricalChargeUnit.ESU, "ESU", "esu");
330 
331     /** ElectricalCharge.FARADAY unit type with code 9. */
332     public static final DisplayType ELECTRICALCHARGE_FARADAY =
333             new DisplayType(SerializationUnits.ELECTRICALCHARGE, 9, ElectricalChargeUnit.FARADAY, "FARADAY", "F");
334 
335     /** ElectricalCharge.FRANKLIN unit type with code 10. */
336     public static final DisplayType ELECTRICALCHARGE_FRANKLIN =
337             new DisplayType(SerializationUnits.ELECTRICALCHARGE, 10, ElectricalChargeUnit.FRANKLIN, "FRANKLIN  ", "Fr");
338 
339     /** ElectricalCharge.STATCOULOMB unit type with code 11. */
340     public static final DisplayType ELECTRICALCHARGE_STATCOULOMB =
341             new DisplayType(SerializationUnits.ELECTRICALCHARGE, 11, ElectricalChargeUnit.STATCOULOMB, "STATCOULOMB", "statC");
342 
343     /** ElectricalCharge.MILLIAMPERE_HOUR unit type with code 12. */
344     public static final DisplayTypeType ELECTRICALCHARGE_MILLIAMPERE_HOUR = new DisplayType(SerializationUnits.ELECTRICALCHARGE, 12,
345             ElectricalChargeUnit.MILLIAMPERE_HOUR, "MILLIAMPERE_HOUR", "mAh");
346 
347     /** ElectricalCharge.AMPERE_HOUR unit type with code 13. */
348     public static final DisplayType ELECTRICALCHARGE_AMPERE_HOUR =
349             new DisplayType(SerializationUnits.ELECTRICALCHARGE, 13, ElectricalChargeUnit.AMPERE_HOUR, "AMPERE_HOUR", "Ah");
350 
351     /** ElectricalCharge.KILOAMPERE_HOUR unit type with code 14. */
352     public static final DisplayTypeyType ELECTRICALCHARGE_KILOAMPERE_HOUR = new DisplayType(SerializationUnits.ELECTRICALCHARGE, 14,
353             ElectricalChargeUnit.KILOAMPERE_HOUR, "KILOAMPERE_HOUR", "kAh");
354 
355     /** ElectricalCharge.MEGAAMPERE_HOUR unit type with code 15. */
356     public static final DisplayTypeyType ELECTRICALCHARGE_MEGAAMPERE_HOUR = new DisplayType(SerializationUnits.ELECTRICALCHARGE, 15,
357             ElectricalChargeUnit.MEGAAMPERE_HOUR, "MEGAAMPERE_HOUR", "MAh");
358 
359     /** ElectricalCharge.MILLIAMPERE_SECOND unit type with code 16. */
360     public static final DisplayTypepe ELECTRICALCHARGE_MILLIAMPERE_SECOND = new DisplayType(SerializationUnits.ELECTRICALCHARGE,
361             16, ElectricalChargeUnit.MILLIAMPERE_SECOND, "MILLIAMPERE_SECOND", "mAs");
362 
363     /* ============================================= ELECTRICALCURRENT ================================================= */
364 
365     /** ElectricalCurrent.AMPERE unit type with code 0. */
366     public static final DisplayType ELECTRICALCURRENT_AMPERE =
367             new DisplayType(SerializationUnits.ELECTRICALCURRENT, 0, ElectricalCurrentUnit.AMPERE, "AMPERE", "A");
368 
369     /** ElectricalCurrent.NANOAMPERE unit type with code 1. */
370     public static final DisplayTypesplayType ELECTRICALCURRENT_NANOAMPERE = new DisplayType(SerializationUnits.ELECTRICALCURRENT, 1,
371             ElectricalCurrentUnit.BASE.getUnitByAbbreviation("nA"), "NANOAMPERE", "nA");
372 
373     /** ElectricalCurrent.MICROAMPERE unit type with code 2. */
374     public static final DisplayType ELECTRICALCURRENT_MICROAMPERE =
375             new DisplayType(SerializationUnits.ELECTRICALCURRENT, 2, ElectricalCurrentUnit.MICROAMPERE, "MICROAMPERE", "μA");
376 
377     /** ElectricalCurrent.MILLIAMPERE unit type with code 3. */
378     public static final DisplayType ELECTRICALCURRENT_MILLIAMPERE =
379             new DisplayType(SerializationUnits.ELECTRICALCURRENT, 3, ElectricalCurrentUnit.MILLIAMPERE, "MILLIAMPERE", "mA");
380 
381     /** ElectricalCurrent.KILOAMPERE unit type with code 4. */
382     public static final DisplayType ELECTRICALCURRENT_KILOAMPERE =
383             new DisplayType(SerializationUnits.ELECTRICALCURRENT, 4, ElectricalCurrentUnit.KILOAMPERE, "KILOAMPERE", "kA");
384 
385     /** ElectricalCurrent.MEGAAMPERE unit type with code 5. */
386     public static final DisplayType ELECTRICALCURRENT_MEGAAMPERE =
387             new DisplayType(SerializationUnits.ELECTRICALCURRENT, 5, ElectricalCurrentUnit.MEGAAMPERE, "MEGAAMPERE", "MA");
388 
389     /** ElectricalCurrent.ABAMPERE unit type with code 6. */
390     public static final DisplayType ELECTRICALCURRENT_ABAMPERE =
391             new DisplayType(SerializationUnits.ELECTRICALCURRENT, 6, ElectricalCurrentUnit.ABAMPERE, "ABAMPERE", "abA");
392 
393     /** ElectricalCurrent.STATAMPERE unit type with code 7. */
394     public static final DisplayType ELECTRICALCURRENT_STATAMPERE =
395             new DisplayType(SerializationUnits.ELECTRICALCURRENT, 7, ElectricalCurrentUnit.STATAMPERE, "STATAMPERE", "statA");
396 
397     /* ============================================ ELECTRICALPOTENTIAL ================================================ */
398 
399     /** ElectricalPotential.VOLT unit type with code 0. */
400     public static final DisplayType ELECTRICALPOTENTIAL_VOLT =
401             new DisplayType(SerializationUnits.ELECTRICALPOTENTIAL, 0, ElectricalPotentialUnit.VOLT, "VOLT", "V");
402 
403     /** ElectricalPotential.NANOVOLT unit type with code 1. */
404     public static final DisplayTypesplayType ELECTRICALPOTENTIAL_NANOVOLT = new DisplayType(SerializationUnits.ELECTRICALPOTENTIAL, 1,
405             ElectricalPotentialUnit.BASE.getUnitByAbbreviation("nV"), "NANOVOLT", "nV");
406 
407     /** ElectricalPotential.MICROVOLT unit type with code 2. */
408     public static final DisplayType ELECTRICALPOTENTIAL_MICROVOLT =
409             new DisplayType(SerializationUnits.ELECTRICALPOTENTIAL, 2, ElectricalPotentialUnit.MICROVOLT, "MICROVOLT", "μV");
410 
411     /** ElectricalPotential.MILLIVOLT unit type with code 3. */
412     public static final DisplayType ELECTRICALPOTENTIAL_MILLIVOLT =
413             new DisplayType(SerializationUnits.ELECTRICALPOTENTIAL, 3, ElectricalPotentialUnit.MILLIVOLT, "MILLIVOLT", "mV");
414 
415     /** ElectricalPotential.KILOVOLT unit type with code 4. */
416     public static final DisplayType ELECTRICALPOTENTIAL_KILOVOLT =
417             new DisplayType(SerializationUnits.ELECTRICALPOTENTIAL, 4, ElectricalPotentialUnit.KILOVOLT, "KILOVOLT", "kV");
418 
419     /** ElectricalPotential.MEGAVOLT unit type with code 5. */
420     public static final DisplayType ELECTRICALPOTENTIAL_MEGAVOLT =
421             new DisplayType(SerializationUnits.ELECTRICALPOTENTIAL, 5, ElectricalPotentialUnit.MEGAVOLT, "MEGAVOLT", "MV");
422 
423     /** ElectricalPotential.GIGAVOLT unit type with code 6. */
424     public static final DisplayType ELECTRICALPOTENTIAL_GIGAVOLT =
425             new DisplayType(SerializationUnits.ELECTRICALPOTENTIAL, 6, ElectricalPotentialUnit.GIGAVOLT, "GIGAVOLT", "GV");
426 
427     /** ElectricalPotential.ABVOLT unit type with code 7. */
428     public static final DisplayType ELECTRICALPOTENTIAL_ABVOLT =
429             new DisplayType(SerializationUnits.ELECTRICALPOTENTIAL, 7, ElectricalPotentialUnit.ABVOLT, "ABVOLT", "abV");
430 
431     /** ElectricalPotential.STATVOLT unit type with code 8. */
432     public static final DisplayType ELECTRICALPOTENTIAL_STATVOLT =
433             new DisplayType(SerializationUnits.ELECTRICALPOTENTIAL, 8, ElectricalPotentialUnit.STATVOLT, "STATVOLT", "statV");
434 
435     /* =========================================== ELECTRICALRESISTANCE ================================================ */
436 
437     /** ElectricalResistance.OHM unit type with code 0. */
438     public static final DisplayType ELECTRICALRESISTANCE_OHM =
439             new DisplayType(SerializationUnits.ELECTRICALRESISTANCE, 0, ElectricalResistanceUnit.OHM, "OHM", "Ω");
440 
441     /** ElectricalResistance.NANOOHM unit type with code 1. */
442     public static final DisplayTypesplayType ELECTRICALRESISTANCE_NANOOHM = new DisplayType(SerializationUnits.ELECTRICALRESISTANCE, 1,
443             ElectricalResistanceUnit.BASE.getUnitByAbbreviation("nohm"), "NANOOHM", "nΩ");
444 
445     /** ElectricalResistance.MICROOHM unit type with code 2. */
446     public static final DisplayType ELECTRICALRESISTANCE_MICROOHM =
447             new DisplayType(SerializationUnits.ELECTRICALRESISTANCE, 2, ElectricalResistanceUnit.MICROOHM, "MICROOHM", "μΩ");
448 
449     /** ElectricalResistance.MILLIOHM unit type with code 3. */
450     public static final DisplayType ELECTRICALRESISTANCE_MILLIOHM =
451             new DisplayType(SerializationUnits.ELECTRICALRESISTANCE, 3, ElectricalResistanceUnit.MILLIOHM, "MILLIOHM", "mΩ");
452 
453     /** ElectricalResistance.KILOOHM unit type with code 4. */
454     public static final DisplayType ELECTRICALRESISTANCE_KILOOHM =
455             new DisplayType(SerializationUnits.ELECTRICALRESISTANCE, 4, ElectricalResistanceUnit.KILOOHM, "KILOOHM", "kΩ");
456 
457     /** ElectricalResistance.MEGAOHM unit type with code 5. */
458     public static final DisplayType ELECTRICALRESISTANCE_MEGAOHM =
459             new DisplayType(SerializationUnits.ELECTRICALRESISTANCE, 5, ElectricalResistanceUnit.MEGAOHM, "MEGAOHM", "MΩ");
460 
461     /** ElectricalResistance.GIGAOHM unit type with code 6. */
462     public static final DisplayType ELECTRICALRESISTANCE_GIGAOHM =
463             new DisplayType(SerializationUnits.ELECTRICALRESISTANCE, 6, ElectricalResistanceUnit.GIGAOHM, "GIGAOHM", "GΩ");
464 
465     /** ElectricalResistance.ABOHM unit type with code 7. */
466     public static final DisplayType ELECTRICALRESISTANCE_ABOHM =
467             new DisplayType(SerializationUnits.ELECTRICALRESISTANCE, 7, ElectricalResistanceUnit.ABOHM, "ABOHM", "abΩ");
468 
469     /** ElectricalResistance.STATOHM unit type with code 8. */
470     public static final DisplayType ELECTRICALRESISTANCE_STATOHM =
471             new DisplayType(SerializationUnits.ELECTRICALRESISTANCE, 8, ElectricalResistanceUnit.STATOHM, "STATOHM", "statΩ");
472 
473     /* ==================================================== ENERGY ===================================================== */
474 
475     /** Energy.JOULE unit type with code 0. */
476     public static final DisplayType ENERGY_JOULE =
477             new DisplayType(SerializationUnits.ENERGY, 0, EnergyUnit.JOULE, "JOULE", "J");
478 
479     /** Energy.PICOJOULE unit type with code 1. */
480     public static final DisplayType ENERGY_PICOJOULE =
481             new DisplayType(SerializationUnits.ENERGY, 1, EnergyUnit.BASE.getUnitByAbbreviation("pJ"), "PICOJOULE", "pJ");
482 
483     /** Energy.NANOJOULE unit type with code 2. */
484     public static final DisplayType ENERGY_NANOJOULE =
485             new DisplayType(SerializationUnits.ENERGY, 2, EnergyUnit.BASE.getUnitByAbbreviation("nJ"), "NANOJOULE", "nJ");
486 
487     /** Energy.MICROJOULE unit type with code 3. */
488     public static final DisplayType ENERGY_MICROJOULE =
489             new DisplayType(SerializationUnits.ENERGY, 3, EnergyUnit.MICROJOULE, "MICROJOULE", "μJ");
490 
491     /** Energy.MILLIJOULE unit type with code 4. */
492     public static final DisplayType ENERGY_MILLIJOULE =
493             new DisplayType(SerializationUnits.ENERGY, 4, EnergyUnit.MILLIJOULE, "MILLIJOULE", "mJ");
494 
495     /** Energy.KILOJOULE unit type with code 5. */
496     public static final DisplayType ENERGY_KILOJOULE =
497             new DisplayType(SerializationUnits.ENERGY, 5, EnergyUnit.KILOJOULE, "KILOJOULE", "kJ");
498 
499     /** Energy.MEGAJOULE unit type with code 6. */
500     public static final DisplayType ENERGY_MEGAJOULE =
501             new DisplayType(SerializationUnits.ENERGY, 6, EnergyUnit.MEGAJOULE, "MEGAJOULE", "MJ");
502 
503     /** Energy.GIGAJOULE unit type with code 7. */
504     public static final DisplayType ENERGY_GIGAJOULE =
505             new DisplayType(SerializationUnits.ENERGY, 7, EnergyUnit.GIGAJOULE, "GIGAJOULE", "GJ");
506 
507     /** Energy.TERAJOULE unit type with code 8. */
508     public static final DisplayType ENERGY_TERAJOULE =
509             new DisplayType(SerializationUnits.ENERGY, 8, EnergyUnit.TERAJOULE, "TERAJOULE", "TJ");
510 
511     /** Energy.PETAJOULE unit type with code 9. */
512     public static final DisplayType ENERGY_PETAJOULE =
513             new DisplayType(SerializationUnits.ENERGY, 9, EnergyUnit.PETAJOULE, "PETAJOULE", "PJ");
514 
515     /** Energy.ELECTRONVOLT unit type with code 10. */
516     public static final DisplayType ENERGY_ELECTRONVOLT =
517             new DisplayType(SerializationUnits.ENERGY, 10, EnergyUnit.ELECTRONVOLT, "ELECTRONVOLT", "eV");
518 
519     /** Energy.MICROELECTRONVOLT unit type with code 11. */
520     public static final DisplayType ENERGY_MICROELECTRONVOLT =
521             new DisplayType(SerializationUnits.ENERGY, 11, EnergyUnit.MICROELECTRONVOLT, "MICROELECTRONVOLT", "μeV");
522 
523     /** Energy.MILLIELECTRONVOLT unit type with code 12. */
524     public static final DisplayType ENERGY_MILLIELECTRONVOLT =
525             new DisplayType(SerializationUnits.ENERGY, 12, EnergyUnit.MILLIELECTRONVOLT, "MILLIELECTRONVOLT", "meV");
526 
527     /** Energy.KILOELECTRONVOLT unit type with code 13. */
528     public static final DisplayType ENERGY_KILOELECTRONVOLT =
529             new DisplayType(SerializationUnits.ENERGY, 13, EnergyUnit.KILOELECTRONVOLT, "KILOELECTRONVOLT", "keV");
530 
531     /** Energy.MEGAELECTRONVOLT unit type with code 14. */
532     public static final DisplayType ENERGY_MEGAELECTRONVOLT =
533             new DisplayType(SerializationUnits.ENERGY, 14, EnergyUnit.MEGAELECTRONVOLT, "MEGAELECTRONVOLT", "MeV");
534 
535     /** Energy.GIGAELECTRONVOLT unit type with code 15. */
536     public static final DisplayType ENERGY_GIGAELECTRONVOLT =
537             new DisplayType(SerializationUnits.ENERGY, 15, EnergyUnit.GIGAELECTRONVOLT, "GIGAELECTRONVOLT", "GeV");
538 
539     /** Energy.TERAELECTRONVOLT unit type with code 16. */
540     public static final DisplayTypee">DisplayType ENERGY_TERAELECTRONVOLT = new DisplayType(SerializationUnits.ENERGY, 16,
541             EnergyUnit.BASE.getUnitByAbbreviation("TeV"), "TERAELECTRONVOLT", "TeV");
542 
543     /** Energy.PETAELECTRONVOLT unit type with code 17. */
544     public static final DisplayTypee">DisplayType ENERGY_PETAELECTRONVOLT = new DisplayType(SerializationUnits.ENERGY, 17,
545             EnergyUnit.BASE.getUnitByAbbreviation("PeV"), "PETAELECTRONVOLT", "PeV");
546 
547     /** Energy.EXAELECTRONVOLT unit type with code 18. */
548     public static final DisplayTypepe">DisplayType ENERGY_EXAELECTRONVOLT = new DisplayType(SerializationUnits.ENERGY, 18,
549             EnergyUnit.BASE.getUnitByAbbreviation("EeV"), "EXAELECTRONVOLT", "EeV");
550 
551     /** Energy.WATT_HOUR unit type with code 19. */
552     public static final DisplayType ENERGY_WATT_HOUR =
553             new DisplayType(SerializationUnits.ENERGY, 19, EnergyUnit.WATT_HOUR, "WATT_HOUR", "Wh");
554 
555     /** Energy.FEMTOWATT_HOUR unit type with code 20. */
556     public static final DisplayTypeype">DisplayType ENERGY_FEMTOWATT_HOUR = new DisplayType(SerializationUnits.ENERGY, 20,
557             EnergyUnit.BASE.getUnitByAbbreviation("fWh"), "FEMTOWATT_HOUR", "fWh");
558 
559     /** Energy.PICOWATT_HOUR unit type with code 21. */
560     public static final DisplayTypeType">DisplayType ENERGY_PICOWATT_HOUR = new DisplayType(SerializationUnits.ENERGY, 21,
561             EnergyUnit.BASE.getUnitByAbbreviation("pWh"), "PICOWATT_HOUR", "pWh");
562 
563     /** Energy.NANOWATT_HOUR unit type with code 22. */
564     public static final DisplayTypeType">DisplayType ENERGY_NANOWATT_HOUR = new DisplayType(SerializationUnits.ENERGY, 22,
565             EnergyUnit.BASE.getUnitByAbbreviation("nWh"), "NANOWATT_HOUR", "nWh");
566 
567     /** Energy.MICROWATT_HOUR unit type with code 23. */
568     public static final DisplayType ENERGY_MICROWATT_HOUR =
569             new DisplayType(SerializationUnits.ENERGY, 23, EnergyUnit.MICROWATT_HOUR, "MICROWATT_HOUR", "μWh");
570 
571     /** Energy.MILLIWATT_HOUR unit type with code 24. */
572     public static final DisplayType ENERGY_MILLIWATT_HOUR =
573             new DisplayType(SerializationUnits.ENERGY, 24, EnergyUnit.MILLIWATT_HOUR, "MILLIWATT_HOUR", "mWh");
574 
575     /** Energy.KILOWATT_HOUR unit type with code 25. */
576     public static final DisplayType ENERGY_KILOWATT_HOUR =
577             new DisplayType(SerializationUnits.ENERGY, 25, EnergyUnit.KILOWATT_HOUR, "KILOWATT_HOUR", "kWh");
578 
579     /** Energy.MEGAWATT_HOUR unit type with code 26. */
580     public static final DisplayType ENERGY_MEGAWATT_HOUR =
581             new DisplayType(SerializationUnits.ENERGY, 26, EnergyUnit.MEGAWATT_HOUR, "MEGAWATT_HOUR", "MWh");
582 
583     /** Energy.GIGAWATT_HOUR unit type with code 27. */
584     public static final DisplayType ENERGY_GIGAWATT_HOUR =
585             new DisplayType(SerializationUnits.ENERGY, 27, EnergyUnit.GIGAWATT_HOUR, "GIGAWATT_HOUR", "GWh");
586 
587     /** Energy.TERAWATT_HOUR unit type with code 28. */
588     public static final DisplayType ENERGY_TERAWATT_HOUR =
589             new DisplayType(SerializationUnits.ENERGY, 28, EnergyUnit.TERAWATT_HOUR, "TERAWATT_HOUR", "TWh");
590 
591     /** Energy.PETAWATT_HOUR unit type with code 29. */
592     public static final DisplayType ENERGY_PETAWATT_HOUR =
593             new DisplayType(SerializationUnits.ENERGY, 29, EnergyUnit.PETAWATT_HOUR, "PETAWATT_HOUR", "PWh");
594 
595     /** Energy.CALORIE unit type with code 30. */
596     public static final DisplayType ENERGY_CALORIE =
597             new DisplayType(SerializationUnits.ENERGY, 30, EnergyUnit.CALORIE, "CALORIE", "cal");
598 
599     /** Energy.KILOCALORIE unit type with code 31. */
600     public static final DisplayType ENERGY_KILOCALORIE =
601             new DisplayType(SerializationUnits.ENERGY, 31, EnergyUnit.KILOCALORIE, "KILOCALORIE", "kcal");
602 
603     /** Energy.CALORIE_IT unit type with code 32. */
604     public static final DisplayType ENERGY_CALORIE_IT =
605             new DisplayType(SerializationUnits.ENERGY, 32, EnergyUnit.CALORIE_IT, "CALORIE_IT", "cal(IT)");
606 
607     /** Energy.INCH_POUND_FORCE unit type with code 33. */
608     public static final DisplayType ENERGY_INCH_POUND_FORCE =
609             new DisplayType(SerializationUnits.ENERGY, 33, EnergyUnit.INCH_POUND_FORCE, "INCH_POUND_FORCE", "in lbf");
610 
611     /** Energy.FOOT_POUND_FORCE unit type with code 34. */
612     public static final DisplayType ENERGY_FOOT_POUND_FORCE =
613             new DisplayType(SerializationUnits.ENERGY, 34, EnergyUnit.FOOT_POUND_FORCE, "FOOT_POUND_FORCE", "ft lbf");
614 
615     /** Energy.ERG unit type with code 35. */
616     public static final DisplayTypeml#DisplayType">DisplayType ENERGY_ERG = new DisplayType(SerializationUnits.ENERGY, 35, EnergyUnit.ERG, "ERG", "erg");
617 
618     /** Energy.BTU_ISO unit type with code 36. */
619     public static final DisplayType ENERGY_BTU_ISO =
620             new DisplayType(SerializationUnits.ENERGY, 36, EnergyUnit.BTU_ISO, "BTU_ISO", "BTU(ISO)");
621 
622     /** Energy.BTU_IT unit type with code 37. */
623     public static final DisplayType ENERGY_BTU_IT =
624             new DisplayType(SerializationUnits.ENERGY, 37, EnergyUnit.BTU_IT, "BTU_IT", "BTU(IT)");
625 
626     /** Energy.STHENE_METER unit type with code 38. */
627     public static final DisplayType ENERGY_STHENE_METER =
628             new DisplayType(SerializationUnits.ENERGY, 38, EnergyUnit.STHENE_METER, "STHENE_METER", "sth.m");
629 
630     /* =================================================== FLOWMASS ==================================================== */
631 
632     /** FlowMass.KG_PER_SECOND unit type with code 0. */
633     public static final DisplayType FLOWMASS_KG_PER_SECOND =
634             new DisplayType(SerializationUnits.FLOWMASS, 0, FlowMassUnit.KILOGRAM_PER_SECOND, "KG_PER_SECOND", "kg/s");
635 
636     /** FlowMass.POUND_PER_SECOND unit type with code 1. */
637     public static final DisplayType FLOWMASS_POUND_PER_SECOND =
638             new DisplayType(SerializationUnits.FLOWMASS, 1, FlowMassUnit.POUND_PER_SECOND, "POUND_PER_SECOND", "lb/s");
639 
640     /* ================================================== FLOWVOLUME =================================================== */
641 
642     /** FlowVolume.CUBIC_METER_PER_SECOND unit type with code 0. */
643     public static final DisplayTypeType FLOWVOLUME_CUBIC_METER_PER_SECOND = new DisplayType(SerializationUnits.FLOWVOLUME, 0,
644             FlowVolumeUnit.CUBIC_METER_PER_SECOND, "CUBIC_METER_PER_SECOND", "m3/s");
645 
646     /** FlowVolume.CUBIC_METER_PER_MINUTE unit type with code 1. */
647     public static final DisplayTypeType FLOWVOLUME_CUBIC_METER_PER_MINUTE = new DisplayType(SerializationUnits.FLOWVOLUME, 1,
648             FlowVolumeUnit.CUBIC_METER_PER_MINUTE, "CUBIC_METER_PER_MINUTE", "m3/min");
649 
650     /** FlowVolume.CUBIC_METER_PER_HOUR unit type with code 2. */
651     public static final DisplayTypeayType FLOWVOLUME_CUBIC_METER_PER_HOUR = new DisplayType(SerializationUnits.FLOWVOLUME, 2,
652             FlowVolumeUnit.CUBIC_METER_PER_HOUR, "CUBIC_METER_PER_HOUR", "m3/h");
653 
654     /** FlowVolume.CUBIC_METER_PER_DAY unit type with code 3. */
655     public static final DisplayTypelayType FLOWVOLUME_CUBIC_METER_PER_DAY = new DisplayType(SerializationUnits.FLOWVOLUME, 3,
656             FlowVolumeUnit.CUBIC_METER_PER_DAY, "CUBIC_METER_PER_DAY", "m3/day");
657 
658     /** FlowVolume.CUBIC_INCH_PER_SECOND unit type with code 4. */
659     public static final DisplayTypeyType FLOWVOLUME_CUBIC_INCH_PER_SECOND = new DisplayType(SerializationUnits.FLOWVOLUME, 4,
660             FlowVolumeUnit.CUBIC_INCH_PER_SECOND, "CUBIC_INCH_PER_SECOND", "in3/s");
661 
662     /** FlowVolume.CUBIC_INCH_PER_MINUTE unit type with code 5. */
663     public static final DisplayTypeyType FLOWVOLUME_CUBIC_INCH_PER_MINUTE = new DisplayType(SerializationUnits.FLOWVOLUME, 5,
664             FlowVolumeUnit.CUBIC_INCH_PER_MINUTE, "CUBIC_INCH_PER_MINUTE", "in3/min");
665 
666     /** FlowVolume.CUBIC_FEET_PER_SECOND unit type with code 6. */
667     public static final DisplayTypeyType FLOWVOLUME_CUBIC_FEET_PER_SECOND = new DisplayType(SerializationUnits.FLOWVOLUME, 6,
668             FlowVolumeUnit.CUBIC_FEET_PER_SECOND, "CUBIC_FEET_PER_SECOND", "ft3/s");
669 
670     /** FlowVolume.CUBIC_FEET_PER_MINUTE unit type with code 7. */
671     public static final DisplayTypeyType FLOWVOLUME_CUBIC_FEET_PER_MINUTE = new DisplayType(SerializationUnits.FLOWVOLUME, 7,
672             FlowVolumeUnit.CUBIC_FEET_PER_MINUTE, "CUBIC_FEET_PER_MINUTE", "ft3/min");
673 
674     /** FlowVolume.GALLON_PER_SECOND unit type with code 8. */
675     public static final DisplayTypesplayType FLOWVOLUME_GALLON_PER_SECOND = new DisplayType(SerializationUnits.FLOWVOLUME, 8,
676             FlowVolumeUnit.GALLON_US_PER_SECOND, "GALLON_PER_SECOND", "gal/s");
677 
678     /** FlowVolume.GALLON_PER_MINUTE unit type with code 9. */
679     public static final DisplayTypesplayType FLOWVOLUME_GALLON_PER_MINUTE = new DisplayType(SerializationUnits.FLOWVOLUME, 9,
680             FlowVolumeUnit.GALLON_US_PER_MINUTE, "GALLON_PER_MINUTE", "gal/min");
681 
682     /** FlowVolume.GALLON_PER_HOUR unit type with code 10. */
683     public static final DisplayType FLOWVOLUME_GALLON_PER_HOUR =
684             new DisplayType(SerializationUnits.FLOWVOLUME, 10, FlowVolumeUnit.GALLON_US_PER_HOUR, "GALLON_PER_HOUR", "gal/h");
685 
686     /** FlowVolume.GALLON_PER_DAY unit type with code 11. */
687     public static final DisplayType FLOWVOLUME_GALLON_PER_DAY =
688             new DisplayType(SerializationUnits.FLOWVOLUME, 11, FlowVolumeUnit.GALLON_US_PER_DAY, "GALLON_PER_DAY", "gal/day");
689 
690     /** FlowVolume.LITER_PER_SECOND unit type with code 12. */
691     public static final DisplayType FLOWVOLUME_LITER_PER_SECOND =
692             new DisplayType(SerializationUnits.FLOWVOLUME, 12, FlowVolumeUnit.LITER_PER_SECOND, "LITER_PER_SECOND", "l/s");
693 
694     /** FlowVolume.LITER_PER_MINUTE unit type with code 13. */
695     public static final DisplayType FLOWVOLUME_LITER_PER_MINUTE =
696             new DisplayType(SerializationUnits.FLOWVOLUME, 13, FlowVolumeUnit.LITER_PER_MINUTE, "LITER_PER_MINUTE", "l/min");
697 
698     /** FlowVolume.LITER_PER_HOUR unit type with code 14. */
699     public static final DisplayType FLOWVOLUME_LITER_PER_HOUR =
700             new DisplayType(SerializationUnits.FLOWVOLUME, 14, FlowVolumeUnit.LITER_PER_HOUR, "LITER_PER_HOUR", "l/h");
701 
702     /** FlowVolume.LITER_PER_DAY unit type with code 15. */
703     public static final DisplayType FLOWVOLUME_LITER_PER_DAY =
704             new DisplayType(SerializationUnits.FLOWVOLUME, 15, FlowVolumeUnit.LITER_PER_DAY, "LITER_PER_DAY", "l/day");
705 
706     /* ==================================================== FORCE ====================================================== */
707 
708     /** Force.NEWTON unit type with code 0. */
709     public static final DisplayType FORCE_NEWTON =
710             new DisplayType(SerializationUnits.FORCE, 0, ForceUnit.NEWTON, "NEWTON", "N");
711 
712     /** Force.KILOGRAM_FORCE unit type with code 1. */
713     public static final DisplayType FORCE_KILOGRAM_FORCE =
714             new DisplayType(SerializationUnits.FORCE, 1, ForceUnit.KILOGRAM_FORCE, "KILOGRAM_FORCE", "kgf");
715 
716     /** Force.OUNCE_FORCE unit type with code 2. */
717     public static final DisplayType FORCE_OUNCE_FORCE =
718             new DisplayType(SerializationUnits.FORCE, 2, ForceUnit.OUNCE_FORCE, "OUNCE_FORCE", "ozf");
719 
720     /** Force.POUND_FORCE unit type with code 3. */
721     public static final DisplayType FORCE_POUND_FORCE =
722             new DisplayType(SerializationUnits.FORCE, 3, ForceUnit.POUND_FORCE, "POUND_FORCE", "lbf");
723 
724     /** Force.TON_FORCE unit type with code 4. */
725     public static final DisplayType FORCE_TON_FORCE =
726             new DisplayType(SerializationUnits.FORCE, 4, ForceUnit.TON_FORCE, "TON_FORCE", "tnf");
727 
728     /** Force.DYNE unit type with code 5. */
729     public static final DisplayTypeml#DisplayType">DisplayType FORCE_DYNE = new DisplayType(SerializationUnits.FORCE, 5, ForceUnit.DYNE, "DYNE", "dyne");
730 
731     /** Force.STHENE unit type with code 6. */
732     public static final DisplayType FORCE_STHENE =
733             new DisplayType(SerializationUnits.FORCE, 6, ForceUnit.STHENE, "STHENE", "sth");
734 
735     /* ================================================== FREQUENCY ==================================================== */
736 
737     /** Frequency.HERTZ unit type with code 0. */
738     public static final DisplayType FREQUENCY_HERTZ =
739             new DisplayType(SerializationUnits.FREQUENCY, 0, FrequencyUnit.HERTZ, "HERTZ", "Hz");
740 
741     /** Frequency.KILOHERTZ unit type with code 1. */
742     public static final DisplayType FREQUENCY_KILOHERTZ =
743             new DisplayType(SerializationUnits.FREQUENCY, 1, FrequencyUnit.KILOHERTZ, "KILOHERTZ", "kHz");
744 
745     /** Frequency.MEGAHERTZ unit type with code 2. */
746     public static final DisplayType FREQUENCY_MEGAHERTZ =
747             new DisplayType(SerializationUnits.FREQUENCY, 2, FrequencyUnit.MEGAHERTZ, "MEGAHERTZ", "MHz");
748 
749     /** Frequency.GIGAHERTZ unit type with code 3. */
750     public static final DisplayType FREQUENCY_GIGAHERTZ =
751             new DisplayType(SerializationUnits.FREQUENCY, 3, FrequencyUnit.GIGAHERTZ, "GIGAHERTZ", "GHz");
752 
753     /** Frequency.TERAHERTZ unit type with code 4. */
754     public static final DisplayType FREQUENCY_TERAHERTZ =
755             new DisplayType(SerializationUnits.FREQUENCY, 4, FrequencyUnit.TERAHERTZ, "TERAHERTZ", "THz");
756 
757     /** Frequency.PER_SECOND unit type with code 5. */
758     public static final DisplayType FREQUENCY_PER_SECOND =
759             new DisplayType(SerializationUnits.FREQUENCY, 5, FrequencyUnit.PER_SECOND, "PER_SECOND", "1/s");
760 
761     /** Frequency.PER_ATTOSECOND unit type with code 6. */
762     public static final DisplayType">DisplayType FREQUENCY_PER_ATTOSECOND = new DisplayType(SerializationUnits.FREQUENCY, 6,
763             FrequencyUnit.BASE.getUnitByAbbreviation("/as"), "PER_ATTOSECOND", "1/as");
764 
765     /** Frequency.PER_FEMTOSECOND unit type with code 7. */
766     public static final DisplayType>DisplayType FREQUENCY_PER_FEMTOSECOND = new DisplayType(SerializationUnits.FREQUENCY, 7,
767             FrequencyUnit.BASE.getUnitByAbbreviation("/fs"), "PER_FEMTOSECOND", "1/fs");
768 
769     /** Frequency.PER_PICOSECOND unit type with code 8. */
770     public static final DisplayType">DisplayType FREQUENCY_PER_PICOSECOND = new DisplayType(SerializationUnits.FREQUENCY, 8,
771             FrequencyUnit.BASE.getUnitByAbbreviation("/ps"), "PER_PICOSECOND", "1/ps");
772 
773     /** Frequency.PER_NANOSECOND unit type with code 9. */
774     public static final DisplayType">DisplayType FREQUENCY_PER_NANOSECOND = new DisplayType(SerializationUnits.FREQUENCY, 9,
775             FrequencyUnit.BASE.getUnitByAbbreviation("/ns"), "PER_NANOSECOND", "1/ns");
776 
777     /** Frequency.PER_MICROSECOND unit type with code 10. */
778     public static final DisplayType FREQUENCY_PER_MICROSECOND =
779             new DisplayType(SerializationUnits.FREQUENCY, 10, FrequencyUnit.PER_MICROSECOND, "PER_MICROSECOND", "1/μs");
780 
781     /** Frequency.PER_MILLISECOND unit type with code 11. */
782     public static final DisplayType FREQUENCY_PER_MILLISECOND =
783             new DisplayType(SerializationUnits.FREQUENCY, 11, FrequencyUnit.PER_MILLISECOND, "PER_MILLISECOND", "1/ms");
784 
785     /** Frequency.PER_MINUTE unit type with code 12. */
786     public static final DisplayType FREQUENCY_PER_MINUTE =
787             new DisplayType(SerializationUnits.FREQUENCY, 12, FrequencyUnit.PER_MINUTE, "PER_MINUTE", "1/min");
788 
789     /** Frequency.PER_HOUR unit type with code 13. */
790     public static final DisplayType FREQUENCY_PER_HOUR =
791             new DisplayType(SerializationUnits.FREQUENCY, 13, FrequencyUnit.PER_HOUR, "PER_HOUR", "1/hr");
792 
793     /** Frequency.PER_DAY unit type with code 14. */
794     public static final DisplayType FREQUENCY_PER_DAY =
795             new DisplayType(SerializationUnits.FREQUENCY, 14, FrequencyUnit.PER_DAY, "PER_DAY", "1/day");
796 
797     /** Frequency.PER_WEEK unit type with code 15. */
798     public static final DisplayType FREQUENCY_PER_WEEK =
799             new DisplayType(SerializationUnits.FREQUENCY, 15, FrequencyUnit.PER_WEEK, "PER_WEEK", "1/wk");
800 
801     /** Frequency.RPM unit type with code 16. */
802     public static final DisplayType FREQUENCY_RPM =
803             new DisplayType(SerializationUnits.FREQUENCY, 16, FrequencyUnit.RPM, "RPM", "rpm");
804 
805     /* ==================================================== LENGTH ===================================================== */
806 
807     /** Length.METER unit type with code 0. */
808     public static final DisplayType LENGTH_METER =
809             new DisplayType(SerializationUnits.LENGTH, 0, LengthUnit.METER, "METER", "m");
810 
811     /** Length.ATTOMETER unit type with code 1. */
812     public static final DisplayType LENGTH_ATTOMETER =
813             new DisplayType(SerializationUnits.LENGTH, 1, LengthUnit.BASE.getUnitByAbbreviation("am"), "ATTOMETER", "am");
814 
815     /** Length.FEMTOMETER unit type with code 2. */
816     public static final DisplayType LENGTH_FEMTOMETER =
817             new DisplayType(SerializationUnits.LENGTH, 2, LengthUnit.BASE.getUnitByAbbreviation("fm"), "FEMTOMETER", "fm");
818 
819     /** Length.PICOMETER unit type with code 3. */
820     public static final DisplayType LENGTH_PICOMETER =
821             new DisplayType(SerializationUnits.LENGTH, 3, LengthUnit.BASE.getUnitByAbbreviation("pm"), "PICOMETER", "pm");
822 
823     /** Length.NANOMETER unit type with code 4. */
824     public static final DisplayType LENGTH_NANOMETER =
825             new DisplayType(SerializationUnits.LENGTH, 4, LengthUnit.NANOMETER, "NANOMETER", "nm");
826 
827     /** Length.MICROMETER unit type with code 5. */
828     public static final DisplayType LENGTH_MICROMETER =
829             new DisplayType(SerializationUnits.LENGTH, 5, LengthUnit.MICROMETER, "MICROMETER", "μm");
830 
831     /** Length.MILLIMETER unit type with code 6. */
832     public static final DisplayType LENGTH_MILLIMETER =
833             new DisplayType(SerializationUnits.LENGTH, 6, LengthUnit.MILLIMETER, "MILLIMETER", "mm");
834 
835     /** Length.CENTIMETER unit type with code 7. */
836     public static final DisplayType LENGTH_CENTIMETER =
837             new DisplayType(SerializationUnits.LENGTH, 7, LengthUnit.CENTIMETER, "CENTIMETER", "cm");
838 
839     /** Length.DECIMETER unit type with code 8. */
840     public static final DisplayType LENGTH_DECIMETER =
841             new DisplayType(SerializationUnits.LENGTH, 8, LengthUnit.DECIMETER, "DECIMETER", "dm");
842 
843     /** Length.DEKAMETER unit type with code 9. */
844     public static final DisplayType LENGTH_DEKAMETER =
845             new DisplayType(SerializationUnits.LENGTH, 9, LengthUnit.BASE.getUnitByAbbreviation("dam"), "DEKAMETER", "dam");
846 
847     /** Length.HECTOMETER unit type with code 10. */
848     public static final DisplayType LENGTH_HECTOMETER =
849             new DisplayType(SerializationUnits.LENGTH, 10, LengthUnit.HECTOMETER, "HECTOMETER", "hm");
850 
851     /** Length.KILOMETER unit type with code 11. */
852     public static final DisplayType LENGTH_KILOMETER =
853             new DisplayType(SerializationUnits.LENGTH, 11, LengthUnit.KILOMETER, "KILOMETER", "km");
854 
855     /** Length.MEGAMETER unit type with code 12. */
856     public static final DisplayType LENGTH_MEGAMETER =
857             new DisplayType(SerializationUnits.LENGTH, 12, LengthUnit.BASE.getUnitByAbbreviation("Mm"), "MEGAMETER", "Mm");
858 
859     /** Length.INCH unit type with code 13. */
860     public static final DisplayTypel#DisplayType">DisplayType LENGTH_INCH = new DisplayType(SerializationUnits.LENGTH, 13, LengthUnit.INCH, "INCH", "in");
861 
862     /** Length.FOOT unit type with code 14. */
863     public static final DisplayTypel#DisplayType">DisplayType LENGTH_FOOT = new DisplayType(SerializationUnits.LENGTH, 14, LengthUnit.FOOT, "FOOT", "ft");
864 
865     /** Length.YARD unit type with code 15. */
866     public static final DisplayTypel#DisplayType">DisplayType LENGTH_YARD = new DisplayType(SerializationUnits.LENGTH, 15, LengthUnit.YARD, "YARD", "yd");
867 
868     /** Length.MILE unit type with code 16. */
869     public static final DisplayTypel#DisplayType">DisplayType LENGTH_MILE = new DisplayType(SerializationUnits.LENGTH, 16, LengthUnit.MILE, "MILE", "mi");
870 
871     /** Length.NAUTICAL_MILE unit type with code 17. */
872     public static final DisplayType LENGTH_NAUTICAL_MILE =
873             new DisplayType(SerializationUnits.LENGTH, 17, LengthUnit.NAUTICAL_MILE, "NAUTICAL_MILE", "NM");
874 
875     /** Length.ASTRONOMICAL_UNIT unit type with code 18. */
876     public static final DisplayType LENGTH_ASTRONOMICAL_UNIT =
877             new DisplayType(SerializationUnits.LENGTH, 18, LengthUnit.ASTRONOMICAL_UNIT, "ASTRONOMICAL_UNIT", "au");
878 
879     /** Length.PARSEC unit type with code 19. */
880     public static final DisplayType LENGTH_PARSEC =
881             new DisplayType(SerializationUnits.LENGTH, 19, LengthUnit.PARSEC, "PARSEC", "pc");
882 
883     /** Length.LIGHTYEAR unit type with code 20. */
884     public static final DisplayType LENGTH_LIGHTYEAR =
885             new DisplayType(SerializationUnits.LENGTH, 20, LengthUnit.LIGHTYEAR, "LIGHTYEAR", "ly");
886 
887     /** Length.ANGSTROM unit type with code 21. */
888     public static final DisplayType LENGTH_ANGSTROM =
889             new DisplayType(SerializationUnits.LENGTH, 21, LengthUnit.ANGSTROM, "ANGSTROM", "Å");
890 
891     /* =================================================== POSITION ==================================================== */
892 
893     /** Position.METER unit type with code 0. */
894     public static final DisplayType POSITION_METER =
895             new DisplayType(SerializationUnits.POSITION, 0, PositionUnit.METER, "METER", "m");
896 
897     /** Position.ATTOMETER unit type with code 1. */
898     public static final DisplayType POSITION_ATTOMETER =
899             new DisplayType(SerializationUnits.POSITION, 1, PositionUnit.BASE.getUnitByAbbreviation("am"), "ATTOMETER", "am");
900 
901     /** Position.FEMTOMETER unit type with code 2. */
902     public static final DisplayType POSITION_FEMTOMETER =
903             new DisplayType(SerializationUnits.POSITION, 2, PositionUnit.BASE.getUnitByAbbreviation("fm"), "FEMTOMETER", "fm");
904 
905     /** Position.PICOMETER unit type with code 3. */
906     public static final DisplayType POSITION_PICOMETER =
907             new DisplayType(SerializationUnits.POSITION, 3, PositionUnit.BASE.getUnitByAbbreviation("pm"), "PICOMETER", "pm");
908 
909     /** Position.NANOMETER unit type with code 4. */
910     public static final DisplayType POSITION_NANOMETER =
911             new DisplayType(SerializationUnits.POSITION, 4, PositionUnit.NANOMETER, "NANOMETER", "nm");
912 
913     /** Position.MICROMETER unit type with code 5. */
914     public static final DisplayType POSITION_MICROMETER =
915             new DisplayType(SerializationUnits.POSITION, 5, PositionUnit.MICROMETER, "MICROMETER", "μm");
916 
917     /** Position.MILLIMETER unit type with code 6. */
918     public static final DisplayType POSITION_MILLIMETER =
919             new DisplayType(SerializationUnits.POSITION, 6, PositionUnit.MILLIMETER, "MILLIMETER", "mm");
920 
921     /** Position.CENTIMETER unit type with code 7. */
922     public static final DisplayType POSITION_CENTIMETER =
923             new DisplayType(SerializationUnits.POSITION, 7, PositionUnit.CENTIMETER, "CENTIMETER", "cm");
924 
925     /** Position.DECIMETER unit type with code 8. */
926     public static final DisplayType POSITION_DECIMETER =
927             new DisplayType(SerializationUnits.POSITION, 8, PositionUnit.DECIMETER, "DECIMETER", "dm");
928 
929     /** Position.DEKAMETER unit type with code 9. */
930     public static final DisplayType POSITION_DEKAMETER =
931             new DisplayType(SerializationUnits.POSITION, 9, PositionUnit.BASE.getUnitByAbbreviation("dam"), "DEKAMETER", "dam");
932 
933     /** Position.HECTOMETER unit type with code 10. */
934     public static final DisplayType POSITION_HECTOMETER =
935             new DisplayType(SerializationUnits.POSITION, 10, PositionUnit.HECTOMETER, "HECTOMETER", "hm");
936 
937     /** Position.KILOMETER unit type with code 11. */
938     public static final DisplayType POSITION_KILOMETER =
939             new DisplayType(SerializationUnits.POSITION, 11, PositionUnit.KILOMETER, "KILOMETER", "km");
940 
941     /** Position.MEGAMETER unit type with code 12. */
942     public static final DisplayType POSITION_MEGAMETER =
943             new DisplayType(SerializationUnits.POSITION, 12, PositionUnit.BASE.getUnitByAbbreviation("Mm"), "MEGAMETER", "Mm");
944 
945     /** Position.INCH unit type with code 13. */
946     public static final DisplayType POSITION_INCH =
947             new DisplayType(SerializationUnits.POSITION, 13, PositionUnit.INCH, "INCH", "in");
948 
949     /** Position.FOOT unit type with code 14. */
950     public static final DisplayType POSITION_FOOT =
951             new DisplayType(SerializationUnits.POSITION, 14, PositionUnit.FOOT, "FOOT", "ft");
952 
953     /** Position.YARD unit type with code 15. */
954     public static final DisplayType POSITION_YARD =
955             new DisplayType(SerializationUnits.POSITION, 15, PositionUnit.YARD, "YARD", "yd");
956 
957     /** Position.MILE unit type with code 16. */
958     public static final DisplayType POSITION_MILE =
959             new DisplayType(SerializationUnits.POSITION, 16, PositionUnit.MILE, "MILE", "mi");
960 
961     /** Position.NAUTICAL_MILE unit type with code 17. */
962     public static final DisplayType POSITION_NAUTICAL_MILE =
963             new DisplayType(SerializationUnits.POSITION, 17, PositionUnit.NAUTICAL_MILE, "NAUTICAL_MILE", "NM");
964 
965     /** Position.ASTRONOMICAL_UNIT unit type with code 18. */
966     public static final DisplayType POSITION_ASTRONOMICAL_UNIT =
967             new DisplayType(SerializationUnits.POSITION, 18, PositionUnit.ASTRONOMICAL_UNIT, "ASTRONOMICAL_UNIT", "au");
968 
969     /** Position.PARSEC unit type with code 19. */
970     public static final DisplayType POSITION_PARSEC =
971             new DisplayType(SerializationUnits.POSITION, 19, PositionUnit.PARSEC, "PARSEC", "pc");
972 
973     /** Position.LIGHTYEAR unit type with code 20. */
974     public static final DisplayType POSITION_LIGHTYEAR =
975             new DisplayType(SerializationUnits.POSITION, 20, PositionUnit.LIGHTYEAR, "LIGHTYEAR", "ly");
976 
977     /** Position.ANGSTROM unit type with code 21. */
978     public static final DisplayType POSITION_ANGSTROM =
979             new DisplayType(SerializationUnits.POSITION, 21, PositionUnit.ANGSTROM, "ANGSTROM", "Å");
980 
981     /* ================================================= LINEARDENSITY ================================================= */
982 
983     /** LinearDensity.PER_METER unit type with code 0. */
984     public static final DisplayType LINEARDENSITY_PER_METER =
985             new DisplayType(SerializationUnits.LINEARDENSITY, 0, LinearDensityUnit.PER_METER, "PER_METER", "1/m");
986 
987     /** LinearDensity.PER_ATTOMETER unit type with code 1. */
988     public static final DisplayTypeisplayType LINEARDENSITY_PER_ATTOMETER = new DisplayType(SerializationUnits.LINEARDENSITY, 1,
989             LinearDensityUnit.BASE.getUnitByAbbreviation("/am"), "PER_ATTOMETER", "1/am");
990 
991     /** LinearDensity.PER_FEMTOMETER unit type with code 2. */
992     public static final DisplayTypesplayType LINEARDENSITY_PER_FEMTOMETER = new DisplayType(SerializationUnits.LINEARDENSITY, 2,
993             LinearDensityUnit.BASE.getUnitByAbbreviation("/fm"), "PER_FEMTOMETER", "1/fm");
994 
995     /** LinearDensity.PER_PICOMETER unit type with code 3. */
996     public static final DisplayTypeisplayType LINEARDENSITY_PER_PICOMETER = new DisplayType(SerializationUnits.LINEARDENSITY, 3,
997             LinearDensityUnit.BASE.getUnitByAbbreviation("/pm"), "PER_PICOMETER", "1/pm");
998 
999     /** LinearDensity.PER_NANOMETER unit type with code 4. */
1000     public static final DisplayTypeisplayType LINEARDENSITY_PER_NANOMETER = new DisplayType(SerializationUnits.LINEARDENSITY, 4,
1001             LinearDensityUnit.BASE.getUnitByAbbreviation("/nm"), "PER_NANOMETER", "1/nm");
1002 
1003     /** LinearDensity.PER_MICROMETER unit type with code 5. */
1004     public static final DisplayType LINEARDENSITY_PER_MICROMETER =
1005             new DisplayType(SerializationUnits.LINEARDENSITY, 5, LinearDensityUnit.PER_MICROMETER, "PER_MICROMETER", "1/μm");
1006 
1007     /** LinearDensity.PER_MILLIMETER unit type with code 6. */
1008     public static final DisplayType LINEARDENSITY_PER_MILLIMETER =
1009             new DisplayType(SerializationUnits.LINEARDENSITY, 6, LinearDensityUnit.PER_MILLIMETER, "PER_MILLIMETER", "1/mm");
1010 
1011     /** LinearDensity.PER_CENTIMETER unit type with code 7. */
1012     public static final DisplayType LINEARDENSITY_PER_CENTIMETER =
1013             new DisplayType(SerializationUnits.LINEARDENSITY, 7, LinearDensityUnit.PER_CENTIMETER, "PER_CENTIMETER", "1/cm");
1014 
1015     /** LinearDensity.PER_DECIMETER unit type with code 8. */
1016     public static final DisplayType LINEARDENSITY_PER_DECIMETER =
1017             new DisplayType(SerializationUnits.LINEARDENSITY, 8, LinearDensityUnit.PER_DECIMETER, "PER_DECIMETER", "1/dm");
1018 
1019     /** LinearDensity.PER_DEKAMETER unit type with code 9. */
1020     public static final DisplayTypeisplayType LINEARDENSITY_PER_DEKAMETER = new DisplayType(SerializationUnits.LINEARDENSITY, 9,
1021             LinearDensityUnit.BASE.getUnitByAbbreviation("/dam"), "PER_DEKAMETER", "1/dam");
1022 
1023     /** LinearDensity.PER_HECTOMETER unit type with code 10. */
1024     public static final DisplayType LINEARDENSITY_PER_HECTOMETER =
1025             new DisplayType(SerializationUnits.LINEARDENSITY, 10, LinearDensityUnit.PER_HECTOMETER, "PER_HECTOMETER", "1/hm");
1026 
1027     /** LinearDensity.PER_KILOMETER unit type with code 11. */
1028     public static final DisplayType LINEARDENSITY_PER_KILOMETER =
1029             new DisplayType(SerializationUnits.LINEARDENSITY, 11, LinearDensityUnit.PER_KILOMETER, "PER_KILOMETER", "1/km");
1030 
1031     /** LinearDensity.PER_MEGAMETER unit type with code 12. */
1032     public static final DisplayTypeisplayType LINEARDENSITY_PER_MEGAMETER = new DisplayType(SerializationUnits.LINEARDENSITY, 12,
1033             LinearDensityUnit.BASE.getUnitByAbbreviation("/Mm"), "PER_MEGAMETER", "1/Mm");
1034 
1035     /** LinearDensity.PER_INCH unit type with code 13. */
1036     public static final DisplayType LINEARDENSITY_PER_INCH =
1037             new DisplayType(SerializationUnits.LINEARDENSITY, 13, LinearDensityUnit.PER_INCH, "PER_INCH", "1/in");
1038 
1039     /** LinearDensity.PER_FOOT unit type with code 14. */
1040     public static final DisplayType LINEARDENSITY_PER_FOOT =
1041             new DisplayType(SerializationUnits.LINEARDENSITY, 14, LinearDensityUnit.PER_FOOT, "PER_FOOT", "1/ft");
1042 
1043     /** LinearDensity.PER_YARD unit type with code 15. */
1044     public static final DisplayType LINEARDENSITY_PER_YARD =
1045             new DisplayType(SerializationUnits.LINEARDENSITY, 15, LinearDensityUnit.PER_YARD, "PER_YARD", "1/yd");
1046 
1047     /** LinearDensity.PER_MILE unit type with code 16. */
1048     public static final DisplayType LINEARDENSITY_PER_MILE =
1049             new DisplayType(SerializationUnits.LINEARDENSITY, 16, LinearDensityUnit.PER_MILE, "PER_MILE", "1/mi");
1050 
1051     /** LinearDensity.PER_NAUTICAL_MILE unit type with code 17. */
1052     public static final DisplayTypeayType LINEARDENSITY_PER_NAUTICAL_MILE = new DisplayType(SerializationUnits.LINEARDENSITY, 17,
1053             LinearDensityUnit.PER_NAUTICAL_MILE, "PER_NAUTICAL_MILE", "1/NM");
1054 
1055     /** LinearDensity.PER_ASTRONOMICAL_UNIT unit type with code 18. */
1056     public static final DisplayTypepe LINEARDENSITY_PER_ASTRONOMICAL_UNIT = new DisplayType(SerializationUnits.LINEARDENSITY, 18,
1057             LinearDensityUnit.PER_ASTRONOMICAL_UNIT, "PER_ASTRONOMICAL_UNIT", "1/au");
1058 
1059     /** LinearDensity.PER_PARSEC unit type with code 19. */
1060     public static final DisplayType LINEARDENSITY_PER_PARSEC =
1061             new DisplayType(SerializationUnits.LINEARDENSITY, 19, LinearDensityUnit.PER_PARSEC, "PER_PARSEC", "1/pc");
1062 
1063     /** LinearDensity.PER_LIGHTYEAR unit type with code 20. */
1064     public static final DisplayType LINEARDENSITY_PER_LIGHTYEAR =
1065             new DisplayType(SerializationUnits.LINEARDENSITY, 20, LinearDensityUnit.PER_LIGHTYEAR, "PER_LIGHTYEAR", "1/ly");
1066 
1067     /** LinearDensity.PER_ANGSTROM unit type with code 21. */
1068     public static final DisplayType LINEARDENSITY_PER_ANGSTROM =
1069             new DisplayType(SerializationUnits.LINEARDENSITY, 21, LinearDensityUnit.PER_ANGSTROM, "PER_ANGSTROM", "1/Å");
1070 
1071     /* ===================================================== MASS ====================================================== */
1072 
1073     /** Mass.KILOGRAM unit type with code 0. */
1074     public static final DisplayType MASS_KILOGRAM =
1075             new DisplayType(SerializationUnits.MASS, 0, MassUnit.KILOGRAM, "KILOGRAM", "kg");
1076 
1077     /** Mass.FEMTOGRAM unit type with code 1. */
1078     public static final DisplayType MASS_FEMTOGRAM =
1079             new DisplayType(SerializationUnits.MASS, 1, MassUnit.BASE.getUnitByAbbreviation("fg"), "FEMTOGRAM", "fg");
1080 
1081     /** Mass.PICOGRAM unit type with code 2. */
1082     public static final DisplayType MASS_PICOGRAM =
1083             new DisplayType(SerializationUnits.MASS, 2, MassUnit.BASE.getUnitByAbbreviation("pg"), "PICOGRAM", "pg");
1084 
1085     /** Mass.NANOGRAM unit type with code 3. */
1086     public static final DisplayType MASS_NANOGRAM =
1087             new DisplayType(SerializationUnits.MASS, 3, MassUnit.BASE.getUnitByAbbreviation("ng"), "NANOGRAM", "ng");
1088 
1089     /** Mass.MICROGRAM unit type with code 4. */
1090     public static final DisplayType MASS_MICROGRAM =
1091             new DisplayType(SerializationUnits.MASS, 4, MassUnit.MICROGRAM, "MICROGRAM", "μg");
1092 
1093     /** Mass.MILLIGRAM unit type with code 5. */
1094     public static final DisplayType MASS_MILLIGRAM =
1095             new DisplayType(SerializationUnits.MASS, 5, MassUnit.MILLIGRAM, "MILLIGRAM", "mg");
1096 
1097     /** Mass.GRAM unit type with code 6. */
1098     public static final DisplayTypetml#DisplayType">DisplayType MASS_GRAM = new DisplayType(SerializationUnits.MASS, 6, MassUnit.GRAM, "GRAM", "kg");
1099 
1100     /** Mass.MEGAGRAM unit type with code 7. */
1101     public static final DisplayType MASS_MEGAGRAM =
1102             new DisplayType(SerializationUnits.MASS, 7, MassUnit.BASE.getUnitByAbbreviation("Mg"), "MEGAGRAM", "Mg");
1103 
1104     /** Mass.GIGAGRAM unit type with code 8. */
1105     public static final DisplayType MASS_GIGAGRAM =
1106             new DisplayType(SerializationUnits.MASS, 8, MassUnit.BASE.getUnitByAbbreviation("Gg"), "GIGAGRAM", "Gg");
1107 
1108     /** Mass.TERAGRAM unit type with code 9. */
1109     public static final DisplayType MASS_TERAGRAM =
1110             new DisplayType(SerializationUnits.MASS, 9, MassUnit.BASE.getUnitByAbbreviation("Tg"), "TERAGRAM", "Tg");
1111 
1112     /** Mass.PETAGRAM unit type with code 10. */
1113     public static final DisplayType MASS_PETAGRAM =
1114             new DisplayType(SerializationUnits.MASS, 10, MassUnit.BASE.getUnitByAbbreviation("Pg"), "PETAGRAM", "Pg");
1115 
1116     /** Mass.MICROELECTRONVOLT unit type with code 11. */
1117     public static final DisplayType MASS_MICROELECTRONVOLT =
1118             new DisplayType(SerializationUnits.MASS, 11, MassUnit.MICROELECTRONVOLT, "MICROELECTRONVOLT", "μeV");
1119 
1120     /** Mass.MILLIELECTRONVOLT unit type with code 12. */
1121     public static final DisplayType MASS_MILLIELECTRONVOLT =
1122             new DisplayType(SerializationUnits.MASS, 12, MassUnit.MILLIELECTRONVOLT, "MILLIELECTRONVOLT", "meV");
1123 
1124     /** Mass.ELECTRONVOLT unit type with code 13. */
1125     public static final DisplayType MASS_ELECTRONVOLT =
1126             new DisplayType(SerializationUnits.MASS, 13, MassUnit.ELECTRONVOLT, "ELECTRONVOLT", "eV");
1127 
1128     /** Mass.KILOELECTRONVOLT unit type with code 14. */
1129     public static final DisplayType MASS_KILOELECTRONVOLT =
1130             new DisplayType(SerializationUnits.MASS, 14, MassUnit.KILOELECTRONVOLT, "KILOELECTRONVOLT", "keV");
1131 
1132     /** Mass.MEGAELECTRONVOLT unit type with code 15. */
1133     public static final DisplayType MASS_MEGAELECTRONVOLT =
1134             new DisplayType(SerializationUnits.MASS, 15, MassUnit.MEGAELECTRONVOLT, "MEGAELECTRONVOLT", "MeV");
1135 
1136     /** Mass.GIGAELECTRONVOLT unit type with code 16. */
1137     public static final DisplayType MASS_GIGAELECTRONVOLT =
1138             new DisplayType(SerializationUnits.MASS, 16, MassUnit.GIGAELECTRONVOLT, "GIGAELECTRONVOLT", "GeV");
1139 
1140     /** Mass.TERAELECTRONVOLT unit type with code 17. */
1141     public static final DisplayType MASS_TERAELECTRONVOLT =
1142             new DisplayType(SerializationUnits.MASS, 17, MassUnit.BASE.getUnitByAbbreviation("TeV"), "TERAELECTRONVOLT", "TeV");
1143 
1144     /** Mass.PETAELECTRONVOLT unit type with code 18. */
1145     public static final DisplayType MASS_PETAELECTRONVOLT =
1146             new DisplayType(SerializationUnits.MASS, 18, MassUnit.BASE.getUnitByAbbreviation("PeV"), "PETAELECTRONVOLT", "PeV");
1147 
1148     /** Mass.EXAELECTRONVOLT unit type with code 19. */
1149     public static final DisplayType MASS_EXAELECTRONVOLT =
1150             new DisplayType(SerializationUnits.MASS, 19, MassUnit.BASE.getUnitByAbbreviation("EeV"), "EXAELECTRONVOLT", "EeV");
1151 
1152     /** Mass.OUNCE unit type with code 20. */
1153     public static final DisplayTypeml#DisplayType">DisplayType MASS_OUNCE = new DisplayType(SerializationUnits.MASS, 20, MassUnit.OUNCE, "OUNCE", "oz");
1154 
1155     /** Mass.POUND unit type with code 21. */
1156     public static final DisplayTypeml#DisplayType">DisplayType MASS_POUND = new DisplayType(SerializationUnits.MASS, 21, MassUnit.POUND, "POUND", "lb");
1157 
1158     /** Mass.DALTON unit type with code 22. */
1159     public static final DisplayTypel#DisplayType">DisplayType MASS_DALTON = new DisplayType(SerializationUnits.MASS, 22, MassUnit.DALTON, "DALTON", "Da");
1160 
1161     /** Mass.TON_LONG unit type with code 23. */
1162     public static final DisplayType MASS_TON_LONG =
1163             new DisplayType(SerializationUnits.MASS, 23, MassUnit.TON_LONG, "TON_LONG", "ton (long)");
1164 
1165     /** Mass.TON_SHORT unit type with code 24. */
1166     public static final DisplayType MASS_TON_SHORT =
1167             new DisplayType(SerializationUnits.MASS, 24, MassUnit.TON_SHORT, "TON_SHORT", "ton (short)");
1168 
1169     /** Mass.TONNE unit type with code 25. */
1170     public static final DisplayTypeml#DisplayType">DisplayType MASS_TONNE = new DisplayType(SerializationUnits.MASS, 25, MassUnit.TONNE, "TONNE", "tonne");
1171 
1172     /* ==================================================== POWER ====================================================== */
1173 
1174     /** Power.WATT unit type with code 0. */
1175     public static final DisplayTypeml#DisplayType">DisplayType POWER_WATT = new DisplayType(SerializationUnits.POWER, 0, PowerUnit.WATT, "WATT", "W");
1176 
1177     /** Power.FEMTOWATT unit type with code 1. */
1178     public static final DisplayType POWER_FEMTOWATT =
1179             new DisplayType(SerializationUnits.POWER, 1, PowerUnit.BASE.getUnitByAbbreviation("fW"), "FEMTOWATT", "fW");
1180 
1181     /** Power.PICOWATT unit type with code 2. */
1182     public static final DisplayType POWER_PICOWATT =
1183             new DisplayType(SerializationUnits.POWER, 2, PowerUnit.BASE.getUnitByAbbreviation("pW"), "PICOWATT", "pW");
1184 
1185     /** Power.NANOWATT unit type with code 3. */
1186     public static final DisplayType POWER_NANOWATT =
1187             new DisplayType(SerializationUnits.POWER, 3, PowerUnit.BASE.getUnitByAbbreviation("nW"), "NANOWATT", "nW");
1188 
1189     /** Power.MICROWATT unit type with code 4. */
1190     public static final DisplayType POWER_MICROWATT =
1191             new DisplayType(SerializationUnits.POWER, 4, PowerUnit.MICROWATT, "MICROWATT", "μW");
1192 
1193     /** Power.MILLIWATT unit type with code 5. */
1194     public static final DisplayType POWER_MILLIWATT =
1195             new DisplayType(SerializationUnits.POWER, 5, PowerUnit.MILLIWATT, "MILLIWATT", "mW");
1196 
1197     /** Power.KILOWATT unit type with code 6. */
1198     public static final DisplayType POWER_KILOWATT =
1199             new DisplayType(SerializationUnits.POWER, 6, PowerUnit.KILOWATT, "KILOWATT", "kW");
1200 
1201     /** Power.MEGAWATT unit type with code 7. */
1202     public static final DisplayType POWER_MEGAWATT =
1203             new DisplayType(SerializationUnits.POWER, 7, PowerUnit.MEGAWATT, "MEGAWATT", "MW");
1204 
1205     /** Power.GIGAWATT unit type with code 8. */
1206     public static final DisplayType POWER_GIGAWATT =
1207             new DisplayType(SerializationUnits.POWER, 8, PowerUnit.GIGAWATT, "GIGAWATT", "GW");
1208 
1209     /** Power.TERAWATT unit type with code 9. */
1210     public static final DisplayType POWER_TERAWATT =
1211             new DisplayType(SerializationUnits.POWER, 9, PowerUnit.TERAWATT, "TERAWATT", "TW");
1212 
1213     /** Power.PETAWATT unit type with code 10. */
1214     public static final DisplayType POWER_PETAWATT =
1215             new DisplayType(SerializationUnits.POWER, 10, PowerUnit.PETAWATT, "PETAWATT", "PW");
1216 
1217     /** Power.ERG_PER_SECOND unit type with code 11. */
1218     public static final DisplayType POWER_ERG_PER_SECOND =
1219             new DisplayType(SerializationUnits.POWER, 11, PowerUnit.ERG_PER_SECOND, "ERG_PER_SECOND", "erg/s");
1220 
1221     /** Power.FOOT_POUND_FORCE_PER_SECOND unit type with code 12. */
1222     public static final DisplayTypeType POWER_FOOT_POUND_FORCE_PER_SECOND = new DisplayType(SerializationUnits.POWER, 12,
1223             PowerUnit.FOOT_POUND_FORCE_PER_SECOND, "FOOT_POUND_FORCE_PER_SECOND", "ft.lbf/s");
1224 
1225     /** Power.FOOT_POUND_FORCE_PER_MINUTE unit type with code 13. */
1226     public static final DisplayTypeType POWER_FOOT_POUND_FORCE_PER_MINUTE = new DisplayType(SerializationUnits.POWER, 13,
1227             PowerUnit.FOOT_POUND_FORCE_PER_MINUTE, "FOOT_POUND_FORCE_PER_MINUTE", "ft.lbf/min");
1228 
1229     /** Power.FOOT_POUND_FORCE_PER_HOUR unit type with code 14. */
1230     public static final DisplayTypeayType POWER_FOOT_POUND_FORCE_PER_HOUR = new DisplayType(SerializationUnits.POWER, 14,
1231             PowerUnit.FOOT_POUND_FORCE_PER_HOUR, "FOOT_POUND_FORCE_PER_HOUR", "ft.lbf/h");
1232 
1233     /** Power.HORSEPOWER_METRIC unit type with code 15. */
1234     public static final DisplayType POWER_HORSEPOWER_METRIC =
1235             new DisplayType(SerializationUnits.POWER, 15, PowerUnit.HORSEPOWER_METRIC, "HORSEPOWER_METRIC", "hp");
1236 
1237     /** Power.STHENE_METER_PER_SECOND unit type with code 16. */
1238     public static final DisplayTypeplayType POWER_STHENE_METER_PER_SECOND = new DisplayType(SerializationUnits.POWER, 16,
1239             PowerUnit.STHENE_METER_PER_SECOND, "STHENE_METER_PER_SECOND", "sth/s");
1240 
1241     /* ==================================================== PRESSURE =================================================== */
1242 
1243     /** Pressure.PASCAL unit type with code 0. */
1244     public static final DisplayType PRESSURE_PASCAL =
1245             new DisplayType(SerializationUnits.PRESSURE, 0, PressureUnit.PASCAL, "PASCAL", "Pa");
1246 
1247     /** Pressure.HECTOPASCAL unit type with code 1. */
1248     public static final DisplayType PRESSURE_HECTOPASCAL =
1249             new DisplayType(SerializationUnits.PRESSURE, 1, PressureUnit.HECTOPASCAL, "HECTOPASCAL", "hPa");
1250 
1251     /** Pressure.KILOPASCAL unit type with code 2. */
1252     public static final DisplayType PRESSURE_KILOPASCAL =
1253             new DisplayType(SerializationUnits.PRESSURE, 2, PressureUnit.KILOPASCAL, "KILOPASCAL", "kPa");
1254 
1255     /** Pressure.ATMOSPHERE_STANDARD unit type with code 3. */
1256     public static final DisplayType PRESSURE_ATMOSPHERE_STANDARD =
1257             new DisplayType(SerializationUnits.PRESSURE, 3, PressureUnit.ATMOSPHERE_STANDARD, "ATMOSPHERE_STANDARD", "atm");
1258 
1259     /** Pressure.ATMOSPHERE_TECHNICAL unit type with code 4. */
1260     public static final DisplayType PRESSURE_ATMOSPHERE_TECHNICAL =
1261             new DisplayType(SerializationUnits.PRESSURE, 4, PressureUnit.ATMOSPHERE_TECHNICAL, "ATMOSPHERE_TECHNICAL", "at");
1262 
1263     /** Pressure.MILLIBAR unit type with code 5. */
1264     public static final DisplayType PRESSURE_MILLIBAR =
1265             new DisplayType(SerializationUnits.PRESSURE, 5, PressureUnit.MILLIBAR, "MILLIBAR", "mbar");
1266 
1267     /** Pressure.BAR unit type with code 6. */
1268     public static final DisplayType PRESSURE_BAR =
1269             new DisplayType(SerializationUnits.PRESSURE, 6, PressureUnit.BAR, "BAR", "bar");
1270 
1271     /** Pressure.BARYE unit type with code 7. */
1272     public static final DisplayType PRESSURE_BARYE =
1273             new DisplayType(SerializationUnits.PRESSURE, 7, PressureUnit.BARYE, "BARYE", "Ba");
1274 
1275     /** Pressure.MILLIMETER_MERCURY unit type with code 8. */
1276     public static final DisplayType PRESSURE_MILLIMETER_MERCURY =
1277             new DisplayType(SerializationUnits.PRESSURE, 8, PressureUnit.MILLIMETER_MERCURY, "MILLIMETER_MERCURY", "mmHg");
1278 
1279     /** Pressure.CENTIMETER_MERCURY unit type with code 9. */
1280     public static final DisplayType PRESSURE_CENTIMETER_MERCURY =
1281             new DisplayType(SerializationUnits.PRESSURE, 9, PressureUnit.CENTIMETER_MERCURY, "CENTIMETER_MERCURY", "cmHg");
1282 
1283     /** Pressure.INCH_MERCURY unit type with code 10. */
1284     public static final DisplayType PRESSURE_INCH_MERCURY =
1285             new DisplayType(SerializationUnits.PRESSURE, 10, PressureUnit.INCH_MERCURY, "INCH_MERCURY", "inHg");
1286 
1287     /** Pressure.FOOT_MERCURY unit type with code 11. */
1288     public static final DisplayType PRESSURE_FOOT_MERCURY =
1289             new DisplayType(SerializationUnits.PRESSURE, 11, PressureUnit.FOOT_MERCURY, "FOOT_MERCURY", "ftHg");
1290 
1291     /** Pressure.KGF_PER_SQUARE_MM unit type with code 12. */
1292     public static final DisplayType PRESSURE_KGF_PER_SQUARE_MM =
1293             new DisplayType(SerializationUnits.PRESSURE, 12, PressureUnit.KGF_PER_SQUARE_MM, "KGF_PER_SQUARE_MM", "kgf/mm2");
1294 
1295     /** Pressure.PIEZE unit type with code 13. */
1296     public static final DisplayType PRESSURE_PIEZE =
1297             new DisplayType(SerializationUnits.PRESSURE, 13, PressureUnit.PIEZE, "PIEZE", "pz");
1298 
1299     /** Pressure.POUND_PER_SQUARE_INCH unit type with code 14. */
1300     public static final DisplayTypelayType PRESSURE_POUND_PER_SQUARE_INCH = new DisplayType(SerializationUnits.PRESSURE, 14,
1301             PressureUnit.POUND_PER_SQUARE_INCH, "POUND_PER_SQUARE_INCH", "lb/in2");
1302 
1303     /** Pressure.POUND_PER_SQUARE_FOOT unit type with code 15. */
1304     public static final DisplayTypelayType PRESSURE_POUND_PER_SQUARE_FOOT = new DisplayType(SerializationUnits.PRESSURE, 15,
1305             PressureUnit.POUND_PER_SQUARE_FOOT, "POUND_PER_SQUARE_FOOT", "lb/ft2");
1306 
1307     /** Pressure.TORR unit type with code 16. */
1308     public static final DisplayType PRESSURE_TORR =
1309             new DisplayType(SerializationUnits.PRESSURE, 16, PressureUnit.TORR, "TORR", "torr");
1310 
1311     /* ==================================================== SPEED ====================================================== */
1312 
1313     /** Speed.METER_PER_SECOND unit type with code 0. */
1314     public static final DisplayType SPEED_METER_PER_SECOND =
1315             new DisplayType(SerializationUnits.SPEED, 0, SpeedUnit.METER_PER_SECOND, "METER_PER_SECOND", "m/s");
1316 
1317     /** Speed.METER_PER_HOUR unit type with code 1. */
1318     public static final DisplayType SPEED_METER_PER_HOUR =
1319             new DisplayType(SerializationUnits.SPEED, 1, SpeedUnit.METER_PER_HOUR, "METER_PER_HOUR", "m/h");
1320 
1321     /** Speed.KM_PER_SECOND unit type with code 2. */
1322     public static final DisplayType SPEED_KM_PER_SECOND =
1323             new DisplayType(SerializationUnits.SPEED, 2, SpeedUnit.KM_PER_SECOND, "KM_PER_SECOND", "km/s");
1324 
1325     /** Speed.KM_PER_HOUR unit type with code 3. */
1326     public static final DisplayType SPEED_KM_PER_HOUR =
1327             new DisplayType(SerializationUnits.SPEED, 3, SpeedUnit.KM_PER_HOUR, "KM_PER_HOUR", "km/h");
1328 
1329     /** Speed.INCH_PER_SECOND unit type with code 4. */
1330     public static final DisplayType SPEED_INCH_PER_SECOND =
1331             new DisplayType(SerializationUnits.SPEED, 4, SpeedUnit.INCH_PER_SECOND, "INCH_PER_SECOND", "in/s");
1332 
1333     /** Speed.INCH_PER_MINUTE unit type with code 5. */
1334     public static final DisplayType SPEED_INCH_PER_MINUTE =
1335             new DisplayType(SerializationUnits.SPEED, 5, SpeedUnit.INCH_PER_MINUTE, "INCH_PER_MINUTE", "in/min");
1336 
1337     /** Speed.INCH_PER_HOUR unit type with code 6. */
1338     public static final DisplayType SPEED_INCH_PER_HOUR =
1339             new DisplayType(SerializationUnits.SPEED, 6, SpeedUnit.INCH_PER_HOUR, "INCH_PER_HOUR", "in/h");
1340 
1341     /** Speed.FOOT_PER_SECOND unit type with code 7. */
1342     public static final DisplayType SPEED_FOOT_PER_SECOND =
1343             new DisplayType(SerializationUnits.SPEED, 7, SpeedUnit.FOOT_PER_SECOND, "FOOT_PER_SECOND", "ft/s");
1344 
1345     /** Speed.FOOT_PER_MINUTE unit type with code 8. */
1346     public static final DisplayType SPEED_FOOT_PER_MINUTE =
1347             new DisplayType(SerializationUnits.SPEED, 8, SpeedUnit.FOOT_PER_MINUTE, "FOOT_PER_MINUTE", "ft/min");
1348 
1349     /** Speed.FOOT_PER_HOUR unit type with code 9. */
1350     public static final DisplayType SPEED_FOOT_PER_HOUR =
1351             new DisplayType(SerializationUnits.SPEED, 9, SpeedUnit.FOOT_PER_HOUR, "FOOT_PER_HOUR", "ft/h");
1352 
1353     /** Speed.MILE_PER_SECOND unit type with code 10. */
1354     public static final DisplayType SPEED_MILE_PER_SECOND =
1355             new DisplayType(SerializationUnits.SPEED, 10, SpeedUnit.MILE_PER_SECOND, "MILE_PER_SECOND", "mi/s");
1356 
1357     /** Speed.MILE_PER_MINUTE unit type with code 11. */
1358     public static final DisplayType SPEED_MILE_PER_MINUTE =
1359             new DisplayType(SerializationUnits.SPEED, 11, SpeedUnit.MILE_PER_MINUTE, "MILE_PER_MINUTE", "mi/min");
1360 
1361     /** Speed.MILE_PER_HOUR unit type with code 12. */
1362     public static final DisplayType SPEED_MILE_PER_HOUR =
1363             new DisplayType(SerializationUnits.SPEED, 12, SpeedUnit.MILE_PER_HOUR, "MILE_PER_HOUR", "mi/h");
1364 
1365     /** Speed.KNOT unit type with code 13. */
1366     public static final DisplayTypeml#DisplayType">DisplayType SPEED_KNOT = new DisplayType(SerializationUnits.SPEED, 13, SpeedUnit.KNOT, "KNOT", "kt");
1367 
1368     /* ================================================== TEMPERATURE ================================================== */
1369 
1370     /** Temperature.KELVIN unit type with code 0. */
1371     public static final DisplayType TEMPERATURE_KELVIN =
1372             new DisplayType(SerializationUnits.TEMPERATURE, 0, TemperatureUnit.KELVIN, "KELVIN", "K");
1373 
1374     /** Temperature.DEGREE_CELSIUS unit type with code 1. */
1375     public static final DisplayType TEMPERATURE_DEGREE_CELSIUS =
1376             new DisplayType(SerializationUnits.TEMPERATURE, 1, TemperatureUnit.DEGREE_CELSIUS, "DEGREE_CELSIUS", "OC");
1377 
1378     /** Temperature.DEGREE_FAHRENHEIT unit type with code 2. */
1379     public static final DisplayType TEMPERATURE_DEGREE_FAHRENHEIT =
1380             new DisplayType(SerializationUnits.TEMPERATURE, 2, TemperatureUnit.DEGREE_FAHRENHEIT, "DEGREE_FAHRENHEIT", "OF");
1381 
1382     /** Temperature.DEGREE_RANKINE unit type with code 3. */
1383     public static final DisplayType TEMPERATURE_DEGREE_RANKINE =
1384             new DisplayType(SerializationUnits.TEMPERATURE, 3, TemperatureUnit.DEGREE_RANKINE, "DEGREE_RANKINE", "OR");
1385 
1386     /** Temperature.DEGREE_REAUMUR unit type with code 4. */
1387     public static final DisplayType TEMPERATURE_DEGREE_REAUMUR =
1388             new DisplayType(SerializationUnits.TEMPERATURE, 4, TemperatureUnit.DEGREE_REAUMUR, "DEGREE_REAUMUR", "ORé");
1389 
1390     /* ============================================= ABSOLUTETEMPERATURE =============================================== */
1391 
1392     /** AbsoluteTemperature.KELVIN unit type with code 0. */
1393     public static final DisplayType ABSOLUTETEMPERATURE_KELVIN =
1394             new DisplayType(SerializationUnits.ABSOLUTETEMPERATURE, 0, AbsoluteTemperatureUnit.KELVIN, "KELVIN", "K");
1395 
1396     /** AbsoluteTemperature.DEGREE_CELSIUS unit type with code 1. */
1397     public static final DisplayTypeype ABSOLUTETEMPERATURE_DEGREE_CELSIUS = new DisplayType(SerializationUnits.ABSOLUTETEMPERATURE,
1398             1, AbsoluteTemperatureUnit.DEGREE_CELSIUS, "DEGREE_CELSIUS", "OC");
1399 
1400     /** AbsoluteTemperature.DEGREE_FAHRENHEIT unit type with code 2. */
1401     public static final DisplayType ABSOLUTETEMPERATURE_DEGREE_FAHRENHEIT = new DisplayType(
1402             SerializationUnits.ABSOLUTETEMPERATURE, 2, AbsoluteTemperatureUnit.DEGREE_FAHRENHEIT, "DEGREE_FAHRENHEIT", "OF");
1403 
1404     /** AbsoluteTemperature.DEGREE_RANKINE unit type with code 3. */
1405     public static final DisplayTypeype ABSOLUTETEMPERATURE_DEGREE_RANKINE = new DisplayType(SerializationUnits.ABSOLUTETEMPERATURE,
1406             3, AbsoluteTemperatureUnit.DEGREE_RANKINE, "DEGREE_RANKINE", "OR");
1407 
1408     /** AbsoluteTemperature.DEGREE_REAUMUR unit type with code 4. */
1409     public static final DisplayTypeype ABSOLUTETEMPERATURE_DEGREE_REAUMUR = new DisplayType(SerializationUnits.ABSOLUTETEMPERATURE,
1410             4, AbsoluteTemperatureUnit.DEGREE_REAUMUR, "DEGREE_REAUMUR", "ORé");
1411 
1412     /* =================================================== DURATION ==================================================== */
1413 
1414     /** Duration.SECOND unit type with code 0. */
1415     public static final DisplayType DURATION_SECOND =
1416             new DisplayType(SerializationUnits.DURATION, 0, DurationUnit.SECOND, "SECOND", "s");
1417 
1418     /** Duration.ATTOSECOND unit type with code 1. */
1419     public static final DisplayType DURATION_ATTOSECOND =
1420             new DisplayType(SerializationUnits.DURATION, 1, DurationUnit.BASE.getUnitByAbbreviation("as"), "ATTOSECOND", "as");
1421 
1422     /** Duration.FEMTOSECOND unit type with code 2. */
1423     public static final DisplayType DURATION_FEMTOSECOND =
1424             new DisplayType(SerializationUnits.DURATION, 2, DurationUnit.BASE.getUnitByAbbreviation("fs"), "FEMTOSECOND", "fs");
1425 
1426     /** Duration.PICOSECOND unit type with code 3. */
1427     public static final DisplayType DURATION_PICOSECOND =
1428             new DisplayType(SerializationUnits.DURATION, 3, DurationUnit.BASE.getUnitByAbbreviation("ps"), "PICOSECOND", "ps");
1429 
1430     /** Duration.NANOSECOND unit type with code 4. */
1431     public static final DisplayType DURATION_NANOSECOND =
1432             new DisplayType(SerializationUnits.DURATION, 4, DurationUnit.BASE.getUnitByAbbreviation("ns"), "NANOSECOND", "ns");
1433 
1434     /** Duration.MICROSECOND unit type with code 5. */
1435     public static final DisplayType DURATION_MICROSECOND =
1436             new DisplayType(SerializationUnits.DURATION, 5, DurationUnit.MICROSECOND, "MICROSECOND", "μs");
1437 
1438     /** Duration.MILLISECOND unit type with code 6. */
1439     public static final DisplayType DURATION_MILLISECOND =
1440             new DisplayType(SerializationUnits.DURATION, 6, DurationUnit.MILLISECOND, "MILLISECOND", "ms");
1441 
1442     /** Duration.MINUTE unit type with code 7. */
1443     public static final DisplayType DURATION_MINUTE =
1444             new DisplayType(SerializationUnits.DURATION, 7, DurationUnit.MINUTE, "MINUTE", "min");
1445 
1446     /** Duration.HOUR unit type with code 8. */
1447     public static final DisplayType DURATION_HOUR =
1448             new DisplayType(SerializationUnits.DURATION, 8, DurationUnit.HOUR, "HOUR", "hr");
1449 
1450     /** Duration.DAY unit type with code 9. */
1451     public static final DisplayType DURATION_DAY =
1452             new DisplayType(SerializationUnits.DURATION, 9, DurationUnit.DAY, "DAY", "day");
1453 
1454     /** Duration.WEEK unit type with code 10. */
1455     public static final DisplayType DURATION_WEEK =
1456             new DisplayType(SerializationUnits.DURATION, 10, DurationUnit.WEEK, "WEEK", "wk");
1457 
1458     /* ===================================================== TIME ====================================================== */
1459 
1460     /** Time.BASE_SECOND unit type with code 0. */
1461     public static final DisplayType TIME_BASE_SECOND =
1462             new DisplayType(SerializationUnits.TIME, 0, TimeUnit.BASE_SECOND, "SECOND", "s");
1463 
1464     /** Time.BASE_MICROSECOND unit type with code 1. */
1465     public static final DisplayType TIME_BASE_MICROSECOND =
1466             new DisplayType(SerializationUnits.TIME, 1, TimeUnit.BASE_MICROSECOND, "MICROSECOND", "μs");
1467 
1468     /** Time.BASE_MILLISECOND unit type with code 2. */
1469     public static final DisplayType TIME_BASE_MILLISECOND =
1470             new DisplayType(SerializationUnits.TIME, 2, TimeUnit.BASE_MILLISECOND, "MILLISECOND", "ms");
1471 
1472     /** Time.BASE_MINUTE unit type with code 3. */
1473     public static final DisplayType TIME_BASE_MINUTE =
1474             new DisplayType(SerializationUnits.TIME, 3, TimeUnit.BASE_MINUTE, "MINUTE", "min");
1475 
1476     /** Time.BASE_HOUR unit type with code 4. */
1477     public static final DisplayType TIME_BASE_HOUR =
1478             new DisplayType(SerializationUnits.TIME, 4, TimeUnit.BASE_HOUR, "HOUR", "hr");
1479 
1480     /** Time.BASE_DAY unit type with code 5. */
1481     public static final DisplayType TIME_BASE_DAY =
1482             new DisplayType(SerializationUnits.TIME, 5, TimeUnit.BASE_DAY, "DAY", "day");
1483 
1484     /** Time.BASE_WEEK unit type with code 6. */
1485     public static final DisplayType TIME_BASE_WEEK =
1486             new DisplayType(SerializationUnits.TIME, 6, TimeUnit.BASE_WEEK, "WEEK", "wk");
1487 
1488     /** Time.EPOCH_SECOND unit type with code 7. */
1489     public static final DisplayType TIME_EPOCH_SECOND =
1490             new DisplayType(SerializationUnits.TIME, 7, TimeUnit.EPOCH_SECOND, "SECOND (1-1-70)", "s(POSIX)");
1491 
1492     /** Time.EPOCH_MICROSECOND unit type with code 8. */
1493     public static final DisplayType TIME_EPOCH_MICROSECOND =
1494             new DisplayType(SerializationUnits.TIME, 8, TimeUnit.EPOCH_MICROSECOND, "MICROSECOND (1-1-70)", "μs(POSIX)");
1495 
1496     /** Time.EPOCH_MILLISECOND unit type with code 9. */
1497     public static final DisplayType TIME_EPOCH_MILLISECOND =
1498             new DisplayType(SerializationUnits.TIME, 9, TimeUnit.EPOCH_MILLISECOND, "MILLISECOND (1-1-70)", "ms(POSIX)");
1499 
1500     /** Time.EPOCH_MINUTE unit type with code 10. */
1501     public static final DisplayType TIME_EPOCH_MINUTE =
1502             new DisplayType(SerializationUnits.TIME, 10, TimeUnit.EPOCH_MINUTE, "MINUTE (1-1-70)", "min(POSIX)");
1503 
1504     /** Time.EPOCH_HOUR unit type with code 11. */
1505     public static final DisplayType TIME_EPOCH_HOUR =
1506             new DisplayType(SerializationUnits.TIME, 11, TimeUnit.EPOCH_HOUR, "HOUR (1-1-70)", "hr(POSIX)");
1507 
1508     /** Time.EPOCH_DAY unit type with code 12. */
1509     public static final DisplayType TIME_EPOCH_DAY =
1510             new DisplayType(SerializationUnits.TIME, 12, TimeUnit.EPOCH_DAY, "DAY (1-1-70)", "day(POSIX)");
1511 
1512     /** Time.EPOCH_WEEK unit type with code 13. */
1513     public static final DisplayType TIME_EPOCH_WEEK =
1514             new DisplayType(SerializationUnits.TIME, 13, TimeUnit.EPOCH_WEEK, "WEEK (1-1-70)", "wk(POSIX)");
1515 
1516     /** Time.TIME_YEAR1_SECOND unit type with code 14. */
1517     public static final DisplayType TIME_YEAR1_SECOND =
1518             new DisplayType(SerializationUnits.TIME, 14, TimeUnit.EPOCH_YEAR1_SECOND, "SECOND (1-1-0001)", "s(1-1-0001)");
1519 
1520     /** Time.TIME_J2000_SECOND unit type with code 15. */
1521     public static final DisplayType TIME_J2000_SECOND =
1522             new DisplayType(SerializationUnits.TIME, 15, TimeUnit.EPOCH_J2000_SECOND, "SECOND (1-1-2000 12:00)", "s(1-1-2000)");
1523 
1524     /* ==================================================== TORQUE ===================================================== */
1525 
1526     /** Torque.NEWTON_METER unit type with code 0. */
1527     public static final DisplayType TORQUE_NEWTON_METER =
1528             new DisplayType(SerializationUnits.TORQUE, 0, TorqueUnit.NEWTON_METER, "NEWTON_METER", "Nm");
1529 
1530     /** Torque.POUND_FOOT unit type with code 1. */
1531     public static final DisplayType TORQUE_POUND_FOOT =
1532             new DisplayType(SerializationUnits.TORQUE, 1, TorqueUnit.POUND_FOOT, "POUND_FOOT", "lb.ft");
1533 
1534     /** Torque.POUND_INCH unit type with code 2. */
1535     public static final DisplayType TORQUE_POUND_INCH =
1536             new DisplayType(SerializationUnits.TORQUE, 2, TorqueUnit.POUND_INCH, "POUND_INCH", "lb.in");
1537 
1538     /** Torque.METER_KILOGRAM_FORCE unit type with code 3. */
1539     public static final DisplayType TORQUE_METER_KILOGRAM_FORCE =
1540             new DisplayType(SerializationUnits.TORQUE, 3, TorqueUnit.METER_KILOGRAM_FORCE, "METER_KILOGRAM_FORCE", "m.kgf");
1541 
1542     /* ==================================================== VOLUME ===================================================== */
1543 
1544     /** Volume.CUBIC_METER unit type with code 0. */
1545     public static final DisplayType VOLUME_CUBIC_METER =
1546             new DisplayType(SerializationUnits.VOLUME, 0, VolumeUnit.CUBIC_METER, "CUBIC_METER", "m3");
1547 
1548     /** Volume.CUBIC_ATTOMETER unit type with code 1. */
1549     public static final DisplayTypepe">DisplayType VOLUME_CUBIC_ATTOMETER = new DisplayType(SerializationUnits.VOLUME, 1,
1550             VolumeUnit.BASE.getUnitByAbbreviation("am^3"), "CUBIC_ATTOMETER", "am3");
1551 
1552     /** Volume.CUBIC_FEMTOMETER unit type with code 2. */
1553     public static final DisplayTypee">DisplayType VOLUME_CUBIC_FEMTOMETER = new DisplayType(SerializationUnits.VOLUME, 2,
1554             VolumeUnit.BASE.getUnitByAbbreviation("fm^3"), "CUBIC_FEMTOMETER", "fm3");
1555 
1556     /** Volume.CUBIC_PICOMETER unit type with code 3. */
1557     public static final DisplayTypepe">DisplayType VOLUME_CUBIC_PICOMETER = new DisplayType(SerializationUnits.VOLUME, 3,
1558             VolumeUnit.BASE.getUnitByAbbreviation("pm^3"), "CUBIC_PICOMETER", "pm3");
1559 
1560     /** Volume.CUBIC_NANOMETER unit type with code 4. */
1561     public static final DisplayTypepe">DisplayType VOLUME_CUBIC_NANOMETER = new DisplayType(SerializationUnits.VOLUME, 4,
1562             VolumeUnit.BASE.getUnitByAbbreviation("nm^3"), "CUBIC_NANOMETER", "nm3");
1563 
1564     /** Volume.CUBIC_MICROMETER unit type with code 5. */
1565     public static final DisplayTypee">DisplayType VOLUME_CUBIC_MICROMETER = new DisplayType(SerializationUnits.VOLUME, 5,
1566             VolumeUnit.BASE.getUnitByAbbreviation("μm^3"), "CUBIC_MICROMETER", "μm3");
1567 
1568     /** Volume.CUBIC_MILLIMETER unit type with code 6. */
1569     public static final DisplayType VOLUME_CUBIC_MILLIMETER =
1570             new DisplayType(SerializationUnits.VOLUME, 6, VolumeUnit.CUBIC_MILLIMETER, "CUBIC_MILLIMETER", "mm3");
1571 
1572     /** Volume.CUBIC_CENTIMETER unit type with code 7. */
1573     public static final DisplayType VOLUME_CUBIC_CENTIMETER =
1574             new DisplayType(SerializationUnits.VOLUME, 7, VolumeUnit.CUBIC_CENTIMETER, "CUBIC_CENTIMETER", "cm3");
1575 
1576     /** Volume.CUBIC_DECIMETER unit type with code 8. */
1577     public static final DisplayType VOLUME_CUBIC_DECIMETER =
1578             new DisplayType(SerializationUnits.VOLUME, 8, VolumeUnit.CUBIC_DECIMETER, "CUBIC_DECIMETER", "dm3");
1579 
1580     /** Volume.CUBIC_DEKAMETER unit type with code 9. */
1581     public static final DisplayTypepe">DisplayType VOLUME_CUBIC_DEKAMETER = new DisplayType(SerializationUnits.VOLUME, 9,
1582             VolumeUnit.BASE.getUnitByAbbreviation("dam^3"), "CUBIC_DEKAMETER", "dam3");
1583 
1584     /** Volume.CUBIC_HECTOMETER unit type with code 10. */
1585     public static final DisplayType VOLUME_CUBIC_HECTOMETER =
1586             new DisplayType(SerializationUnits.VOLUME, 10, VolumeUnit.CUBIC_HECTOMETER, "CUBIC_HECTOMETER", "hm3");
1587 
1588     /** Volume.CUBIC_KILOMETER unit type with code 11. */
1589     public static final DisplayType VOLUME_CUBIC_KILOMETER =
1590             new DisplayType(SerializationUnits.VOLUME, 11, VolumeUnit.CUBIC_KILOMETER, "CUBIC_KILOMETER", "km3");
1591 
1592     /** Volume.CUBIC_MEGAMETER unit type with code 12. */
1593     public static final DisplayTypepe">DisplayType VOLUME_CUBIC_MEGAMETER = new DisplayType(SerializationUnits.VOLUME, 12,
1594             VolumeUnit.BASE.getUnitByAbbreviation("Mm^3"), "CUBIC_MEGAMETER", "Mm3");
1595 
1596     /** Volume.CUBIC_INCH unit type with code 13. */
1597     public static final DisplayType VOLUME_CUBIC_INCH =
1598             new DisplayType(SerializationUnits.VOLUME, 13, VolumeUnit.CUBIC_INCH, "CUBIC_INCH", "in3");
1599 
1600     /** Volume.CUBIC_FOOT unit type with code 14. */
1601     public static final DisplayType VOLUME_CUBIC_FOOT =
1602             new DisplayType(SerializationUnits.VOLUME, 14, VolumeUnit.CUBIC_FOOT, "CUBIC_FOOT", "ft3");
1603 
1604     /** Volume.CUBIC_YARD unit type with code 15. */
1605     public static final DisplayType VOLUME_CUBIC_YARD =
1606             new DisplayType(SerializationUnits.VOLUME, 15, VolumeUnit.CUBIC_YARD, "CUBIC_YARD", "yd3");
1607 
1608     /** Volume.CUBIC_MILE unit type with code 16. */
1609     public static final DisplayType VOLUME_CUBIC_MILE =
1610             new DisplayType(SerializationUnits.VOLUME, 16, VolumeUnit.CUBIC_MILE, "CUBIC_MILE", "mi3");
1611 
1612     /** Volume.LITER unit type with code 17. */
1613     public static final DisplayType VOLUME_LITER =
1614             new DisplayType(SerializationUnits.VOLUME, 17, VolumeUnit.LITER, "LITER", "l");
1615 
1616     /** Volume.GALLON_IMP unit type with code 18. */
1617     public static final DisplayType VOLUME_GALLON_IMP =
1618             new DisplayType(SerializationUnits.VOLUME, 18, VolumeUnit.GALLON_IMP, "GALLON_IMP", "gal (imp)");
1619 
1620     /** Volume.GALLON_US_FLUID unit type with code 19. */
1621     public static final DisplayType VOLUME_GALLON_US_FLUID =
1622             new DisplayType(SerializationUnits.VOLUME, 19, VolumeUnit.GALLON_US, "GALLON_US_FLUID", "gal (US)");
1623 
1624     /** Volume.OUNCE_IMP_FLUID unit type with code 20. */
1625     public static final DisplayType VOLUME_OUNCE_IMP_FLUID =
1626             new DisplayType(SerializationUnits.VOLUME, 20, VolumeUnit.FLUID_OUNCE_IMP, "OUNCE_IMP_FLUID", "oz (imp)");
1627 
1628     /** Volume.OUNCE_US_FLUID unit type with code 21. */
1629     public static final DisplayType VOLUME_OUNCE_US_FLUID =
1630             new DisplayType(SerializationUnits.VOLUME, 21, VolumeUnit.FLUID_OUNCE_US, "OUNCE_US_FLUID", "oz (US)");
1631 
1632     /** Volume.PINT_IMP unit type with code 22. */
1633     public static final DisplayType VOLUME_PINT_IMP =
1634             new DisplayType(SerializationUnits.VOLUME, 22, VolumeUnit.PINT_IMP, "PINT_IMP", "pt (imp)");
1635 
1636     /** Volume.PINT_US_FLUID unit type with code 23. */
1637     public static final DisplayType VOLUME_PINT_US_FLUID =
1638             new DisplayType(SerializationUnits.VOLUME, 23, VolumeUnit.PINT_US, "PINT_US_FLUID", "pt (US)");
1639 
1640     /** Volume.QUART_IMP unit type with code 24. */
1641     public static final DisplayType VOLUME_QUART_IMP =
1642             new DisplayType(SerializationUnits.VOLUME, 24, VolumeUnit.QUART_IMP, "QUART_IMP", "qt (imp)");
1643 
1644     /** Volume.QUART_US_FLUID unit type with code 25. */
1645     public static final DisplayType VOLUME_QUART_US_FLUID =
1646             new DisplayType(SerializationUnits.VOLUME, 25, VolumeUnit.QUART_US, "QUART_US_FLUID", "qt (US)");
1647 
1648     /** Volume.CUBIC_PARSEC unit type with code 26. */
1649     public static final DisplayType VOLUME_CUBIC_PARSEC =
1650             new DisplayType(SerializationUnits.VOLUME, 26, VolumeUnit.CUBIC_PARSEC, "CUBIC_PARSEC", "pc3");
1651 
1652     /** Volume.CUBIC_LIGHTYEAR unit type with code 27. */
1653     public static final DisplayType VOLUME_CUBIC_LIGHTYEAR =
1654             new DisplayType(SerializationUnits.VOLUME, 27, VolumeUnit.CUBIC_LIGHTYEAR, "CUBIC_LIGHTYEAR", "ly3");
1655 
1656     /* ================================================= ABSORBEDDOSE ================================================== */
1657 
1658     /** AbsorbedDose.GRAY unit type with code 0. */
1659     public static final DisplayType ABSORBEDDOSE_GRAY =
1660             new DisplayType(SerializationUnits.ABSORBEDDOSE, 0, AbsorbedDoseUnit.GRAY, "GRAY", "Gy");
1661 
1662     /** AbsorbedDose.MILLIGRAY unit type with code 1. */
1663     public static final DisplayType ABSORBEDDOSE_MILLIGRAY =
1664             new DisplayType(SerializationUnits.ABSORBEDDOSE, 1, AbsorbedDoseUnit.MILLIGRAY, "MILLIGRAY", "mGy");
1665 
1666     /** AbsorbedDose.MICROGRAY unit type with code 2. */
1667     public static final DisplayType ABSORBEDDOSE_MICROGRAY =
1668             new DisplayType(SerializationUnits.ABSORBEDDOSE, 2, AbsorbedDoseUnit.MICROGRAY, "MICROGRAY", "μGy");
1669 
1670     /** AbsorbedDose.ERG_PER_GRAM unit type with code 3. */
1671     public static final DisplayType ABSORBEDDOSE_ERG_PER_GRAM =
1672             new DisplayType(SerializationUnits.ABSORBEDDOSE, 3, AbsorbedDoseUnit.ERG_PER_GRAM, "ERG_PER_GRAM", "erg/g");
1673 
1674     /** AbsorbedDose.RAD unit type with code 4. */
1675     public static final DisplayType ABSORBEDDOSE_RAD =
1676             new DisplayType(SerializationUnits.ABSORBEDDOSE, 4, AbsorbedDoseUnit.RAD, "RAD", "rad");
1677 
1678     /* =============================================== AMOUNTOFSUBSTANCE =============================================== */
1679 
1680     /** AmountOfSubstance.MOLE unit type with code 0. */
1681     public static final DisplayType AMOUNTOFSUBSTANCE_MOLE =
1682             new DisplayType(SerializationUnits.AMOUNTOFSUBSTANCE, 0, AmountOfSubstanceUnit.MOLE, "MOLE", "mol");
1683 
1684     /** AmountOfSubstance.MILLIMOLE unit type with code 1. */
1685     public static final DisplayType AMOUNTOFSUBSTANCE_MILLIMOLE =
1686             new DisplayType(SerializationUnits.AMOUNTOFSUBSTANCE, 1, AmountOfSubstanceUnit.MILLIMOLE, "MILLIMOLE", "mmol");
1687 
1688     /** AmountOfSubstance.MICROMOLE unit type with code 2. */
1689     public static final DisplayType AMOUNTOFSUBSTANCE_MICROMOLE =
1690             new DisplayType(SerializationUnits.AMOUNTOFSUBSTANCE, 2, AmountOfSubstanceUnit.MICROMOLE, "MICROMOLE", "μmol");
1691 
1692     /** AmountOfSubstance.NANOMOLE unit type with code 3. */
1693     public static final DisplayType AMOUNTOFSUBSTANCE_NANOMOLE =
1694             new DisplayType(SerializationUnits.AMOUNTOFSUBSTANCE, 3, AmountOfSubstanceUnit.NANOMOLE, "NANOMOLE", "nmol");
1695 
1696     /* ================================================ CATALYTICACTIVITY ============================================== */
1697 
1698     /** CatalyticActivity.KATAL unit type with code 0. */
1699     public static final DisplayType CATALYTICACTIVITY_KATAL =
1700             new DisplayType(SerializationUnits.CATALYTICACTIVITY, 0, CatalyticActivityUnit.KATAL, "KATAL", "kat");
1701 
1702     /** CatalyticActivity.MILLIKATAL unit type with code 1. */
1703     public static final DisplayType CATALYTICACTIVITY_MILLIKATAL =
1704             new DisplayType(SerializationUnits.CATALYTICACTIVITY, 1, CatalyticActivityUnit.MILLIKATAL, "MILLIKATAL", "mkat");
1705 
1706     /** CatalyticActivity.MICROKATAL unit type with code 2. */
1707     public static final DisplayType CATALYTICACTIVITY_MICROKATAL =
1708             new DisplayType(SerializationUnits.CATALYTICACTIVITY, 2, CatalyticActivityUnit.MICROKATAL, "MICROKATAL", "μkat");
1709 
1710     /** CatalyticActivity.NANOKATAL unit type with code 3. */
1711     public static final DisplayType CATALYTICACTIVITY_NANOKATAL =
1712             new DisplayType(SerializationUnits.CATALYTICACTIVITY, 3, CatalyticActivityUnit.NANOKATAL, "NANOKATAL", "nkat");
1713 
1714     /* ============================================= ELECTRICALCAPACITANCE ============================================= */
1715 
1716     /** ElectricalCapacitance.FARAD unit type with code 0. */
1717     public static final DisplayType ELECTRICALCAPACITANCE_FARAD =
1718             new DisplayType(SerializationUnits.ELECTRICALCAPACITANCE, 0, ElectricalCapacitanceUnit.FARAD, "FARAD", "F");
1719 
1720     /** ElectricalCapacitance.MILLIFARAD unit type with code 1. */
1721     public static final DisplayTypeyType ELECTRICALCAPACITANCE_MILLIFARAD = new DisplayType(SerializationUnits.ELECTRICALCAPACITANCE,
1722             1, ElectricalCapacitanceUnit.MILLIFARAD, "MILLIFARAD", "mF");
1723 
1724     /** ElectricalCapacitance.MICROFARAD unit type with code 2. */
1725     public static final DisplayTypeyType ELECTRICALCAPACITANCE_MICROFARAD = new DisplayType(SerializationUnits.ELECTRICALCAPACITANCE,
1726             2, ElectricalCapacitanceUnit.MICROFARAD, "MICROFARAD", "uF");
1727 
1728     /** ElectricalCapacitance.NANOFARAD unit type with code 3. */
1729     public static final DisplayTypeayType ELECTRICALCAPACITANCE_NANOFARAD = new DisplayType(SerializationUnits.ELECTRICALCAPACITANCE,
1730             3, ElectricalCapacitanceUnit.NANOFARAD, "NANOFARAD", "nF");
1731 
1732     /** ElectricalCapacitance.PICOFARAD unit type with code 4. */
1733     public static final DisplayTypeayType ELECTRICALCAPACITANCE_PICOFARAD = new DisplayType(SerializationUnits.ELECTRICALCAPACITANCE,
1734             4, ElectricalCapacitanceUnit.PICOFARAD, "PICOFARAD", "pF");
1735 
1736     /* ============================================= ELECTRICALCONDUCTANCE ============================================= */
1737 
1738     /** ElectricalConductance.SIEMENS unit type with code 0. */
1739     public static final DisplayType ELECTRICALCONDUCTANCE_SIEMENS =
1740             new DisplayType(SerializationUnits.ELECTRICALCONDUCTANCE, 0, ElectricalConductanceUnit.SIEMENS, "SIEMENS", "F");
1741 
1742     /** ElectricalConductance.MILLISIEMENS unit type with code 1. */
1743     public static final DisplayTypeype ELECTRICALCONDUCTANCE_MILLISIEMENS = new DisplayType(
1744             SerializationUnits.ELECTRICALCONDUCTANCE, 1, ElectricalConductanceUnit.MILLISIEMENS, "MILLISIEMENS", "mS");
1745 
1746     /** ElectricalConductance.MICROSIEMENS unit type with code 2. */
1747     public static final DisplayTypeype ELECTRICALCONDUCTANCE_MICROSIEMENS = new DisplayType(
1748             SerializationUnits.ELECTRICALCONDUCTANCE, 2, ElectricalConductanceUnit.MICROSIEMENS, "MICROSIEMENS", "μS");
1749 
1750     /** ElectricalConductance.NANOSIEMENS unit type with code 3. */
1751     public static final DisplayTypeType ELECTRICALCONDUCTANCE_NANOSIEMENS = new DisplayType(
1752             SerializationUnits.ELECTRICALCONDUCTANCE, 3, ElectricalConductanceUnit.NANOSIEMENS, "NANOSIEMENS", "nS");
1753 
1754     /* ============================================= ELECTRICALINDUCTANCE ============================================= */
1755 
1756     /** ElectricalInductance.HENRY unit type with code 0. */
1757     public static final DisplayType ELECTRICALINDUCTANCE_HENRY =
1758             new DisplayType(SerializationUnits.ELECTRICALINDUCTANCE, 0, ElectricalInductanceUnit.HENRY, "HENRY", "H");
1759 
1760     /** ElectricalInductance.MILLIHENRY unit type with code 1. */
1761     public static final DisplayTypeayType ELECTRICALINDUCTANCE_MILLIHENRY = new DisplayType(SerializationUnits.ELECTRICALINDUCTANCE,
1762             1, ElectricalInductanceUnit.MILLIHENRY, "MILLIHENRY", "mH");
1763 
1764     /** ElectricalInductance.MICROHENRY unit type with code 2. */
1765     public static final DisplayTypeayType ELECTRICALINDUCTANCE_MICROHENRY = new DisplayType(SerializationUnits.ELECTRICALINDUCTANCE,
1766             2, ElectricalInductanceUnit.MICROHENRY, "MICROHENRY", "μH");
1767 
1768     /** ElectricalInductance.NANOHENRY unit type with code 3. */
1769     public static final DisplayType ELECTRICALINDUCTANCE_NANOHENRY =
1770             new DisplayType(SerializationUnits.ELECTRICALINDUCTANCE, 3, ElectricalInductanceUnit.NANOHENRY, "NANOHENRY", "nH");
1771 
1772     /* ================================================= EQUIVALENTDOSE ================================================ */
1773 
1774     /** EquivalentDose.SIEVERT unit type with code 0. */
1775     public static final DisplayType EQUIVALENTDOSE_SIEVERT =
1776             new DisplayType(SerializationUnits.EQUIVALENTDOSE, 0, EquivalentDoseUnit.SIEVERT, "SIEVERT", "Sv");
1777 
1778     /** EquivalentDose.MILLISIEVERT unit type with code 1. */
1779     public static final DisplayType EQUIVALENTDOSE_MILLISIEVERT =
1780             new DisplayType(SerializationUnits.EQUIVALENTDOSE, 1, EquivalentDoseUnit.MILLISIEVERT, "MILLISIEVERT", "mSv");
1781 
1782     /** EquivalentDose.MICROSIEVERT unit type with code 2. */
1783     public static final DisplayType EQUIVALENTDOSE_MICROSIEVERT =
1784             new DisplayType(SerializationUnits.EQUIVALENTDOSE, 2, EquivalentDoseUnit.MICROSIEVERT, "MICROSIEVERT", "μSv");
1785 
1786     /** EquivalentDose.REM unit type with code 3. */
1787     public static final DisplayType EQUIVALENTDOSE_REM =
1788             new DisplayType(SerializationUnits.EQUIVALENTDOSE, 3, EquivalentDoseUnit.REM, "REM", "rem");
1789 
1790     /* ================================================== ILLUMINANCE ================================================== */
1791 
1792     /** Illuminance.LUX unit type with code 0. */
1793     public static final DisplayType ILLUMINANCE_LUX =
1794             new DisplayType(SerializationUnits.ILLUMINANCE, 0, IlluminanceUnit.LUX, "LUX", "lx");
1795 
1796     /** Illuminance.MILLILUX unit type with code 1. */
1797     public static final DisplayType ILLUMINANCE_MILLILUX =
1798             new DisplayType(SerializationUnits.ILLUMINANCE, 1, IlluminanceUnit.MILLILUX, "MILLILUX", "mlx");
1799 
1800     /** Illuminance.MICROLUX unit type with code 2. */
1801     public static final DisplayType ILLUMINANCE_MICROLUX =
1802             new DisplayType(SerializationUnits.ILLUMINANCE, 2, IlluminanceUnit.MICROLUX, "MICROLUX", "μlx");
1803 
1804     /** Illuminance.KILOLUX unit type with code 3. */
1805     public static final DisplayType ILLUMINANCE_KILOLUX =
1806             new DisplayType(SerializationUnits.ILLUMINANCE, 3, IlluminanceUnit.KILOLUX, "KILOLUX", "klux");
1807 
1808     /** Illuminance.PHOT unit type with code 4. */
1809     public static final DisplayType ILLUMINANCE_PHOT =
1810             new DisplayType(SerializationUnits.ILLUMINANCE, 4, IlluminanceUnit.PHOT, "PHOT", "ph");
1811 
1812     /** Illuminance.NOX unit type with code 5. */
1813     public static final DisplayType ILLUMINANCE_NOX =
1814             new DisplayType(SerializationUnits.ILLUMINANCE, 5, IlluminanceUnit.NOX, "NOX", "nx");
1815 
1816     /* ================================================= LUMINOUSFLUX ================================================== */
1817 
1818     /** LuminousFlux.LUMEN unit type with code 0. */
1819     public static final DisplayType LUMINOUSFLUX_LUMEN =
1820             new DisplayType(SerializationUnits.LUMINOUSFLUX, 0, LuminousFluxUnit.LUMEN, "LUMEN", "lm");
1821 
1822     /* ============================================== LUMINOUSINTENSITY ================================================ */
1823 
1824     /** LuminousIntensity.CANDELA unit type with code 0. */
1825     public static final DisplayType LUMINOUSINTENSITY_CANDELA =
1826             new DisplayType(SerializationUnits.LUMINOUSINTENSITY, 0, LuminousIntensityUnit.CANDELA, "CANDELA", "cd");
1827 
1828     /* ============================================= MAGNETICFLUXDENSITY =============================================== */
1829 
1830     /** MagneticFluxDensity.TESLA unit type with code 0. */
1831     public static final DisplayType MAGNETICFLUXDENSITY_TESLA =
1832             new DisplayType(SerializationUnits.MAGNETICFLUXDENSITY, 0, MagneticFluxDensityUnit.TESLA, "TESLA", "T");
1833 
1834     /** MagneticFluxDensity.MILLITESLA unit type with code 1. */
1835     public static final DisplayType MAGNETICFLUXDENSITY_MILLITESLA =
1836             new DisplayType(SerializationUnits.MAGNETICFLUXDENSITY, 1, MagneticFluxDensityUnit.MILLITESLA, "MILLITESLA", "mT");
1837 
1838     /** MagneticFluxDensity.MICROTESLA unit type with code 2. */
1839     public static final DisplayType MAGNETICFLUXDENSITY_MICROTESLA =
1840             new DisplayType(SerializationUnits.MAGNETICFLUXDENSITY, 2, MagneticFluxDensityUnit.MICROTESLA, "MICROTESLA", "μT");
1841 
1842     /** MagneticFluxDensity.NANOTESLA unit type with code 3. */
1843     public static final DisplayType MAGNETICFLUXDENSITY_NANOTESLA =
1844             new DisplayType(SerializationUnits.MAGNETICFLUXDENSITY, 3, MagneticFluxDensityUnit.NANOTESLA, "NANOTESLA", "nT");
1845 
1846     /** MagneticFluxDensity.GAUSS unit type with code 4. */
1847     public static final DisplayType MAGNETICFLUXDENSITY_GAUSS =
1848             new DisplayType(SerializationUnits.MAGNETICFLUXDENSITY, 4, MagneticFluxDensityUnit.GAUSS, "GAUSS", "G");
1849 
1850     /* ================================================ MAGNETICFLUX =================================================== */
1851 
1852     /** MagneticFlux.WEBER unit type with code 0. */
1853     public static final DisplayType MAGNETICFLUX_WEBER =
1854             new DisplayType(SerializationUnits.MAGNETICFLUX, 0, MagneticFluxUnit.WEBER, "WEBER", "Wb");
1855 
1856     /** MagneticFlux.MILLIWEBER unit type with code 1. */
1857     public static final DisplayType MAGNETICFLUX_MILLIWEBER =
1858             new DisplayType(SerializationUnits.MAGNETICFLUX, 1, MagneticFluxUnit.MILLIWEBER, "MILLIWEBER", "mWb");
1859 
1860     /** MagneticFlux.MICROWEBER unit type with code 2. */
1861     public static final DisplayType MAGNETICFLUX_MICROWEBER =
1862             new DisplayType(SerializationUnits.MAGNETICFLUX, 2, MagneticFluxUnit.MICROWEBER, "MICROWEBER", "μWb");
1863 
1864     /** MagneticFlux.NANOWEBER unit type with code 3. */
1865     public static final DisplayType MAGNETICFLUX_NANOWEBER =
1866             new DisplayType(SerializationUnits.MAGNETICFLUX, 3, MagneticFluxUnit.NANOWEBER, "NANOWEBER", "nWb");
1867 
1868     /** MagneticFlux.MAXWELL unit type with code 4. */
1869     public static final DisplayType MAGNETICFLUX_MAXWELL =
1870             new DisplayType(SerializationUnits.MAGNETICFLUX, 4, MagneticFluxUnit.MAXWELL, "MAXWELL", "Mx");
1871 
1872     /* ================================================ RADIOACTIVITY ================================================== */
1873 
1874     /** RadioActivity.BECQUEREL unit type with code 0. */
1875     public static final DisplayType RADIOACTIVITY_BECQUEREL =
1876             new DisplayType(SerializationUnits.RADIOACTIVITY, 0, RadioActivityUnit.BECQUEREL, "BECQUEREL", "Bq");
1877 
1878     /** RadioActivity.KILOBECQUEREL unit type with code 1. */
1879     public static final DisplayType RADIOACTIVITY_KILOBECQUEREL =
1880             new DisplayType(SerializationUnits.RADIOACTIVITY, 1, RadioActivityUnit.KILOBECQUEREL, "KILOBECQUEREL", "kBq");
1881 
1882     /** RadioActivity.MEGABECQUEREL unit type with code 2. */
1883     public static final DisplayType RADIOACTIVITY_MEGABECQUEREL =
1884             new DisplayType(SerializationUnits.RADIOACTIVITY, 2, RadioActivityUnit.MEGABECQUEREL, "MEGABECQUEREL", "MBq");
1885 
1886     /** RadioActivity.GIGABECQUEREL unit type with code 3. */
1887     public static final DisplayType RADIOACTIVITY_GIGABECQUEREL =
1888             new DisplayType(SerializationUnits.RADIOACTIVITY, 3, RadioActivityUnit.GIGABECQUEREL, "GIGABECQUEREL", "GBq");
1889 
1890     /** RadioActivity.TERABECQUEREL unit type with code 4. */
1891     public static final DisplayType RADIOACTIVITY_TERABECQUEREL =
1892             new DisplayType(SerializationUnits.RADIOACTIVITY, 4, RadioActivityUnit.TERABECQUEREL, "TERABECQUEREL", "TBq");
1893 
1894     /** RadioActivity.PETABECQUEREL unit type with code 5. */
1895     public static final DisplayType RADIOACTIVITY_PETABECQUEREL =
1896             new DisplayType(SerializationUnits.RADIOACTIVITY, 5, RadioActivityUnit.PETABECQUEREL, "PETABECQUEREL", "PBq");
1897 
1898     /** RadioActivity.CURIE unit type with code 6. */
1899     public static final DisplayType RADIOACTIVITY_CURIE =
1900             new DisplayType(SerializationUnits.RADIOACTIVITY, 6, RadioActivityUnit.CURIE, "CURIE", "Ci");
1901 
1902     /** RadioActivity.MILLICURIE unit type with code 7. */
1903     public static final DisplayType RADIOACTIVITY_MILLICURIE =
1904             new DisplayType(SerializationUnits.RADIOACTIVITY, 7, RadioActivityUnit.MILLICURIE, "MILLICURIE", "mCi");
1905 
1906     /** RadioActivity.MICROCURIE unit type with code 8. */
1907     public static final DisplayType RADIOACTIVITY_MICROCURIE =
1908             new DisplayType(SerializationUnits.RADIOACTIVITY, 8, RadioActivityUnit.MICROCURIE, "MICROCURIE", "μCi");
1909 
1910     /** RadioActivity.NANOCURIE unit type with code 9. */
1911     public static final DisplayType RADIOACTIVITY_NANOCURIE =
1912             new DisplayType(SerializationUnits.RADIOACTIVITY, 9, RadioActivityUnit.NANOCURIE, "NANOCURIE", "nCi");
1913 
1914     /** RadioActivity.RUTHERFORD unit type with code 10. */
1915     public static final DisplayType RADIOACTIVITY_RUTHERFORD =
1916             new DisplayType(SerializationUnits.RADIOACTIVITY, 10, RadioActivityUnit.RUTHERFORD, "RUTHERFORD", "Rd");
1917 
1918     /* ================================================== END TYPES ==================================================== */
1919 
1920     /**
1921      * @param unitType the corresponding 0MQ unit type
1922      * @param code the code of the unit provided as an int
1923      * @param djunitsType the djunits data type
1924      * @param name the unit name
1925      * @param abbreviation the unit abbreviation
1926      * @param <U> the unit
1927      */
1928     public <U extends Unit<U>> DisplayType(final SerializationUnits unitType, final int code, final U djunitsType,
1929             final String name, final String abbreviation)
1930     {
1931         Throw.whenNull(unitType, "unitType should not be null");
1932         Throw.whenNull(djunitsType, "djunitsType should not be null");
1933         Throw.whenNull(name, "name should not be null");
1934         Throw.whenNull(abbreviation, "abbreviation should not be null");
1935         Throw.when(name.length() == 0, SerializationRuntimeException.class, "name should not be empty");
1936         Throw.when(abbreviation.length() == 0, SerializationRuntimeException.class, "abbreviation should not be empty");
1937 
1938         this.unitType = unitType;
1939         this.code = code;
1940         this.djunitsType = djunitsType;
1941         this.name = name;
1942         this.abbreviation = abbreviation;
1943         Map<Integer, DisplayType> codeMap = codeDisplayTypeMap.get(this.unitType);
1944         if (codeMap == null)
1945         {
1946             codeMap = new HashMap<>();
1947             codeDisplayTypeMap.put(this.unitType, codeMap);
1948         }
1949         codeMap.put(this.code, this);
1950         djunitsDisplayTypeMap.put(this.djunitsType, this);
1951     }
1952 
1953     /**
1954      * Return the display type belonging to the display code.
1955      * @param unitType UnitType; the unit type to search for
1956      * @param code the code to search for.
1957      * @return the unit type, or null if not found.
1958      */
1959     public static DisplayType getDisplayType(final SerializationUnits unitType, final Integer code)
1960     {
1961         Map<Integer, DisplayType> byteMap = codeDisplayTypeMap.get(unitType);
1962         return byteMap == null ? null : byteMap.get(code);
1963     }
1964 
1965     /**
1966      * Return the display type belonging to the display code.
1967      * @param unitTypeCode the unit type to search for
1968      * @param code the code to search for.
1969      * @return the unit type, or null if not found.
1970      */
1971     public static DisplayType getDisplayType(final byte unitTypeCode, final int code)
1972     {
1973         SerializationUnits unitType = SerializationUnits.getUnitType(unitTypeCode);
1974         Map<Integer, DisplayType> codeMap = codeDisplayTypeMap.get(unitType);
1975         return codeMap == null ? null : codeMap.get(code);
1976     }
1977 
1978     /**
1979      * Return the unit belonging to the display code.
1980      * @param unitTypeCode the unit type to search for
1981      * @param code the code to search for.
1982      * @return the unit type, or null if not found.
1983      */
1984     public static Unit<?> getUnit(final byte unitTypeCode, final int code)
1985     {
1986         SerializationUnits unitType = SerializationUnits.getUnitType(unitTypeCode);
1987         Map<Integer, DisplayType> codeMap = codeDisplayTypeMap.get(unitType);
1988         return codeMap == null ? null : codeMap.get(code) == null ? null : codeMap.get(code).djunitsType;
1989     }
1990 
1991     /**
1992      * Return the unit belonging to the display code.
1993      * @param unitType the unit type to search for
1994      * @param code the code to search for.
1995      * @return the unit type, or null if not found.
1996      */
1997     public static Unit<?> getUnit(final SerializationUnits unitType, final int code)
1998     {
1999         Map<Integer, DisplayType> codeMap = codeDisplayTypeMap.get(unitType);
2000         return codeMap == null ? null : codeMap.get(code) == null ? null : codeMap.get(code).djunitsType;
2001     }
2002 
2003     /**
2004      * @return unitType
2005      */
2006     public SerializationUnits getUnitType()
2007     {
2008         return this.unitType;
2009     }
2010 
2011     /**
2012      * Return the unit type belonging to the unit class.
2013      * @param unit the unit to search for.
2014      * @return the unit type, or null if not found.
2015      * @param <U> the unit
2016      */
2017     public static <U extends Unit<U>> DisplayType getDisplayType(final U unit)
2018     {
2019         return djunitsDisplayTypeMap.get(unit);
2020     }
2021 
2022     /**
2023      * Return the display code belonging to the unit class.
2024      * @param unit the unit to search for.
2025      * @return the unit type, or null if not found.
2026      * @param <U> the unit
2027      */
2028     public static <U extends Unit<U>> int getIntCode(final U unit)
2029     {
2030         SerializationUnits type = SerializationUnits.getUnitType(unit);
2031         DisplayType displayType = type == null ? null : getDisplayType(unit);
2032         return displayType == null ? null : displayType.getIntCode();
2033     }
2034 
2035     /**
2036      * Return the display code belonging to the unit class.
2037      * @param unit the unit to search for.
2038      * @return the unit type, or null if not found.
2039      * @param <U> the unit
2040      */
2041     public static <U extends Unit<U>> byte getByteCode(final U unit)
2042     {
2043         SerializationUnits type = SerializationUnits.getUnitType(unit);
2044         DisplayType displayType = type == null ? null : getDisplayType(unit);
2045         return displayType == null ? null : displayType.getByteCode();
2046     }
2047 
2048     /**
2049      * @return code
2050      */
2051     public final int getIntCode()
2052     {
2053         return this.code;
2054     }
2055 
2056     /**
2057      * @return code
2058      */
2059     public final byte getByteCode()
2060     {
2061         return (byte) (this.code & 0xFF);
2062     }
2063 
2064     /**
2065      * @return djunitsType
2066      */
2067     public final Unit<?> getDjunitsType()
2068     {
2069         return this.djunitsType;
2070     }
2071 
2072     /**
2073      * @return name
2074      */
2075     public final String getName()
2076     {
2077         return this.name;
2078     }
2079 
2080     /**
2081      * @return abbreviation
2082      */
2083     public final String getAbbreviation()
2084     {
2085         return this.abbreviation;
2086     }
2087 
2088 }