View Javadoc
1   package org.djunits.value.vdouble.scalar;
2   
3   import java.util.regex.Matcher;
4   
5   import javax.annotation.Generated;
6   
7   import org.djunits.Throw;
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.DurationUnit;
17  import org.djunits.unit.ElectricalCapacitanceUnit;
18  import org.djunits.unit.ElectricalChargeUnit;
19  import org.djunits.unit.ElectricalConductanceUnit;
20  import org.djunits.unit.ElectricalCurrentUnit;
21  import org.djunits.unit.ElectricalInductanceUnit;
22  import org.djunits.unit.ElectricalPotentialUnit;
23  import org.djunits.unit.ElectricalResistanceUnit;
24  import org.djunits.unit.EnergyUnit;
25  import org.djunits.unit.EquivalentDoseUnit;
26  import org.djunits.unit.FlowMassUnit;
27  import org.djunits.unit.FlowVolumeUnit;
28  import org.djunits.unit.ForceUnit;
29  import org.djunits.unit.FrequencyUnit;
30  import org.djunits.unit.IlluminanceUnit;
31  import org.djunits.unit.LengthUnit;
32  import org.djunits.unit.LinearDensityUnit;
33  import org.djunits.unit.LuminousFluxUnit;
34  import org.djunits.unit.LuminousIntensityUnit;
35  import org.djunits.unit.MagneticFluxDensityUnit;
36  import org.djunits.unit.MagneticFluxUnit;
37  import org.djunits.unit.MassUnit;
38  import org.djunits.unit.PowerUnit;
39  import org.djunits.unit.PressureUnit;
40  import org.djunits.unit.RadioActivityUnit;
41  import org.djunits.unit.SolidAngleUnit;
42  import org.djunits.unit.SpeedUnit;
43  import org.djunits.unit.TemperatureUnit;
44  import org.djunits.unit.TorqueUnit;
45  import org.djunits.unit.VolumeUnit;
46  import org.djunits.value.function.DimensionlessFunctions;
47  import org.djunits.value.util.ValueUtil;
48  import org.djunits.value.vdouble.scalar.base.AbstractDoubleScalarRel;
49  
50  /**
51   * Easy access methods for the Dimensionless DoubleScalar, which is relative by definition.
52   * <p>
53   * Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
54   * BSD-style license. See <a href="https://djunits.org/docs/license.html">DJUNITS License</a>.
55   * </p>
56   * @author <a href="https://www.tudelft.nl/averbraeck">Alexander Verbraeck</a>
57   * @author <a href="https://www.tudelft.nl/staff/p.knoppers/">Peter Knoppers</a>
58   */
59  @Generated(value = "org.djunits.generator.GenerateDJUNIT", date = "2020-01-19T15:21:24.964166400Z")
60  public class Dimensionless extends AbstractDoubleScalarRel<DimensionlessUnit, Dimensionless>
61          implements DimensionlessFunctions<DimensionlessUnit, Dimensionless>
62  {
63      /** */
64      private static final long serialVersionUID = 20150905L;
65  
66      /** Constant with value zero. */
67      public static final Dimensionlessar/Dimensionless.html#Dimensionless">Dimensionless ZERO = new Dimensionless(0.0, DimensionlessUnit.SI);
68  
69      /** Constant with value one. */
70      public static final Dimensionlesslar/Dimensionless.html#Dimensionless">Dimensionless ONE = new Dimensionless(1.0, DimensionlessUnit.SI);
71  
72      /** Constant with value NaN. */
73      @SuppressWarnings("checkstyle:constantname")
74      public static final Dimensionlesslar/Dimensionless.html#Dimensionless">Dimensionless NaN = new Dimensionless(Double.NaN, DimensionlessUnit.SI);
75  
76      /** Constant with value POSITIVE_INFINITY. */
77      public static final Dimensionlessess.html#Dimensionless">Dimensionless POSITIVE_INFINITY = new Dimensionless(Double.POSITIVE_INFINITY, DimensionlessUnit.SI);
78  
79      /** Constant with value NEGATIVE_INFINITY. */
80      public static final Dimensionlessess.html#Dimensionless">Dimensionless NEGATIVE_INFINITY = new Dimensionless(Double.NEGATIVE_INFINITY, DimensionlessUnit.SI);
81  
82      /** Constant with value MAX_VALUE. */
83      public static final Dimensionlesssionless.html#Dimensionless">Dimensionless POS_MAXVALUE = new Dimensionless(Double.MAX_VALUE, DimensionlessUnit.SI);
84  
85      /** Constant with value -MAX_VALUE. */
86      public static final Dimensionlesssionless.html#Dimensionless">Dimensionless NEG_MAXVALUE = new Dimensionless(-Double.MAX_VALUE, DimensionlessUnit.SI);
87  
88      /**
89       * Construct Dimensionless scalar.
90       * @param value double; the double value
91       * @param unit DimensionlessUnit; unit for the double value
92       */
93      public Dimensionless(final double value, final DimensionlessUnit unit)
94      {
95          super(value, unit);
96      }
97  
98      /**
99       * Construct Dimensionless scalar.
100      * @param value Dimensionless; Scalar from which to construct this instance
101      */
102     public Dimensionless/scalar/Dimensionless.html#Dimensionless">Dimensionless(final Dimensionless value)
103     {
104         super(value);
105     }
106 
107     /** {@inheritDoc} */
108     @Override
109     public final Dimensionless instantiateRel(final double value, final DimensionlessUnit unit)
110     {
111         return new Dimensionless(value, unit);
112     }
113 
114     /**
115      * Construct Dimensionless scalar.
116      * @param value double; the double value in SI units
117      * @return Dimensionless; the new scalar with the SI value
118      */
119     public static final Dimensionless instantiateSI(final double value)
120     {
121         return new Dimensionless(value, DimensionlessUnit.SI);
122     }
123 
124     /**
125      * Interpolate between two values.
126      * @param zero Dimensionless; the low value
127      * @param one Dimensionless; the high value
128      * @param ratio double; the ratio between 0 and 1, inclusive
129      * @return Dimensionless; a Scalar at the ratio between
130      */
131     public static Dimensionlessr/Dimensionless.html#Dimensionless">Dimensionlessnsionless.html#Dimensionless">Dimensionless interpolate(final Dimensionlessr/Dimensionless.html#Dimensionless">Dimensionless zero, final Dimensionless one, final double ratio)
132     {
133         return new Dimensionless(zero.getInUnit() * (1 - ratio) + one.getInUnit(zero.getDisplayUnit()) * ratio,
134                 zero.getDisplayUnit());
135     }
136 
137     /**
138      * Return the maximum value of two relative scalars.
139      * @param r1 Dimensionless; the first scalar
140      * @param r2 Dimensionless; the second scalar
141      * @return Dimensionless; the maximum value of two relative scalars
142      */
143     public static Dimensionlesslar/Dimensionless.html#Dimensionless">Dimensionlesslar/Dimensionless.html#Dimensionless">Dimensionless max(final Dimensionlesslar/Dimensionless.html#Dimensionless">Dimensionless r1, final Dimensionless r2)
144     {
145         return r1.gt(r2) ? r1 : r2;
146     }
147 
148     /**
149      * Return the maximum value of more than two relative scalars.
150      * @param r1 Dimensionless; the first scalar
151      * @param r2 Dimensionless; the second scalar
152      * @param rn Dimensionless...; the other scalars
153      * @return Dimensionless; the maximum value of more than two relative scalars
154      */
155     public static Dimensionlesslar/Dimensionless.html#Dimensionless">Dimensionlesslar/Dimensionless.html#Dimensionless">Dimensionless max(final Dimensionlesslar/Dimensionless.html#Dimensionless">Dimensionless r1, final Dimensionless r2, final Dimensionless... rn)
156     {
157         Dimensionless maxr = r1.gt(r2) ? r1 : r2;
158         for (Dimensionless r : rn)
159         {
160             if (r.gt(maxr))
161             {
162                 maxr = r;
163             }
164         }
165         return maxr;
166     }
167 
168     /**
169      * Return the minimum value of two relative scalars.
170      * @param r1 Dimensionless; the first scalar
171      * @param r2 Dimensionless; the second scalar
172      * @return Dimensionless; the minimum value of two relative scalars
173      */
174     public static Dimensionlesslar/Dimensionless.html#Dimensionless">Dimensionlesslar/Dimensionless.html#Dimensionless">Dimensionless min(final Dimensionlesslar/Dimensionless.html#Dimensionless">Dimensionless r1, final Dimensionless r2)
175     {
176         return r1.lt(r2) ? r1 : r2;
177     }
178 
179     /**
180      * Return the minimum value of more than two relative scalars.
181      * @param r1 Dimensionless; the first scalar
182      * @param r2 Dimensionless; the second scalar
183      * @param rn Dimensionless...; the other scalars
184      * @return Dimensionless; the minimum value of more than two relative scalars
185      */
186     public static Dimensionlesslar/Dimensionless.html#Dimensionless">Dimensionlesslar/Dimensionless.html#Dimensionless">Dimensionless min(final Dimensionlesslar/Dimensionless.html#Dimensionless">Dimensionless r1, final Dimensionless r2, final Dimensionless... rn)
187     {
188         Dimensionless minr = r1.lt(r2) ? r1 : r2;
189         for (Dimensionless r : rn)
190         {
191             if (r.lt(minr))
192             {
193                 minr = r;
194             }
195         }
196         return minr;
197     }
198 
199     /**
200      * Returns a Dimensionless representation of a textual representation of a value with a unit. The String representation that
201      * can be parsed is the double value in the unit, followed by the official abbreviation of the unit. Spaces are allowed, but
202      * not required, between the value and the unit.
203      * @param text String; the textual representation to parse into a Dimensionless
204      * @return Dimensionless; the Scalar representation of the value in its unit
205      * @throws IllegalArgumentException when the text cannot be parsed
206      * @throws NullPointerException when the text argument is null
207      */
208     public static Dimensionless valueOf(final String text)
209     {
210         Throw.whenNull(text, "Error parsing Dimensionless: text to parse is null");
211         Throw.when(text.length() == 0, IllegalArgumentException.class, "Error parsing Dimensionless: empty text to parse");
212         Matcher matcher = ValueUtil.NUMBER_PATTERN.matcher(text);
213         if (matcher.find())
214         {
215             int index = matcher.end();
216             String unitString = text.substring(index).trim();
217             String valueString = text.substring(0, index).trim();
218             DimensionlessUnit unit = DimensionlessUnit.BASE.getUnitByAbbreviation(unitString);
219             if (unit != null)
220             {
221                 double d = Double.parseDouble(valueString);
222                 return new Dimensionless(d, unit);
223             }
224         }
225         throw new IllegalArgumentException("Error parsing Dimensionless from " + text);
226     }
227 
228     /**
229      * Returns a Dimensionless based on a value and the textual representation of the unit.
230      * @param value double; the value to use
231      * @param unitString String; the textual representation of the unit
232      * @return Dimensionless; the Scalar representation of the value in its unit
233      * @throws IllegalArgumentException when the unit cannot be parsed or is incorrect
234      * @throws NullPointerException when the unitString argument is null
235      */
236     public static Dimensionless of(final double value, final String unitString)
237     {
238         Throw.whenNull(unitString, "Error parsing Dimensionless: unitString is null");
239         Throw.when(unitString.length() == 0, IllegalArgumentException.class, "Error parsing Dimensionless: empty unitString");
240         DimensionlessUnit unit = DimensionlessUnit.BASE.getUnitByAbbreviation(unitString);
241         if (unit != null)
242         {
243             return new Dimensionless(value, unit);
244         }
245         throw new IllegalArgumentException("Error parsing Dimensionless with unit " + unitString);
246     }
247 
248     /** {@inheritDoc} */
249     @Override
250     public final Dimensionless acos()
251     {
252         return instantiateRel(Math.acos(getInUnit()), getDisplayUnit());
253     }
254 
255     /** {@inheritDoc} */
256     @Override
257     public final Dimensionless asin()
258     {
259         return instantiateRel(Math.asin(getInUnit()), getDisplayUnit());
260     }
261 
262     /** {@inheritDoc} */
263     @Override
264     public final Dimensionless atan()
265     {
266         return instantiateRel(Math.atan(getInUnit()), getDisplayUnit());
267     }
268 
269     /** {@inheritDoc} */
270     @Override
271     public final Dimensionless cbrt()
272     {
273         return instantiateRel(Math.cbrt(getInUnit()), getDisplayUnit());
274     }
275 
276     /** {@inheritDoc} */
277     @Override
278     public final Dimensionless cos()
279     {
280         return instantiateRel(Math.cos(getInUnit()), getDisplayUnit());
281     }
282 
283     /** {@inheritDoc} */
284     @Override
285     public final Dimensionless cosh()
286     {
287         return instantiateRel(Math.cosh(getInUnit()), getDisplayUnit());
288     }
289 
290     /** {@inheritDoc} */
291     @Override
292     public final Dimensionless exp()
293     {
294         return instantiateRel(Math.exp(getInUnit()), getDisplayUnit());
295     }
296 
297     /** {@inheritDoc} */
298     @Override
299     public final Dimensionless expm1()
300     {
301         return instantiateRel(Math.expm1(getInUnit()), getDisplayUnit());
302     }
303 
304     /** {@inheritDoc} */
305     @Override
306     public final Dimensionless log()
307     {
308         return instantiateRel(Math.log(getInUnit()), getDisplayUnit());
309     }
310 
311     /** {@inheritDoc} */
312     @Override
313     public final Dimensionless log10()
314     {
315         return instantiateRel(Math.log10(getInUnit()), getDisplayUnit());
316     }
317 
318     /** {@inheritDoc} */
319     @Override
320     public final Dimensionless log1p()
321     {
322         return instantiateRel(Math.log1p(getInUnit()), getDisplayUnit());
323     }
324 
325     /** {@inheritDoc} */
326     @Override
327     public final Dimensionless pow(final double x)
328     {
329         return instantiateRel(Math.pow(getInUnit(), x), getDisplayUnit());
330     }
331 
332     /** {@inheritDoc} */
333     @Override
334     public final Dimensionless signum()
335     {
336         return instantiateRel(Math.signum(getInUnit()), getDisplayUnit());
337     }
338 
339     /** {@inheritDoc} */
340     @Override
341     public final Dimensionless sin()
342     {
343         return instantiateRel(Math.sin(getInUnit()), getDisplayUnit());
344     }
345 
346     /** {@inheritDoc} */
347     @Override
348     public final Dimensionless sinh()
349     {
350         return instantiateRel(Math.sinh(getInUnit()), getDisplayUnit());
351     }
352 
353     /** {@inheritDoc} */
354     @Override
355     public final Dimensionless sqrt()
356     {
357         return instantiateRel(Math.sqrt(getInUnit()), getDisplayUnit());
358     }
359 
360     /** {@inheritDoc} */
361     @Override
362     public final Dimensionless tan()
363     {
364         return instantiateRel(Math.tan(getInUnit()), getDisplayUnit());
365     }
366 
367     /** {@inheritDoc} */
368     @Override
369     public final Dimensionless tanh()
370     {
371         return instantiateRel(Math.tanh(getInUnit()), getDisplayUnit());
372     }
373 
374     /** {@inheritDoc} */
375     @Override
376     public final Dimensionless inv()
377     {
378         return instantiateRel(1.0 / getInUnit(), getDisplayUnit());
379     }
380 
381     /**
382      * Calculate the division of Dimensionless and Dimensionless, which results in a Dimensionless scalar.
383      * @param v Dimensionless scalar
384      * @return Dimensionless scalar as a division of Dimensionless and Dimensionless
385      */
386     public final Dimensionless/Dimensionless.html#Dimensionless">Dimensionless divide(final Dimensionless v)
387     {
388         return new Dimensionless(this.si / v.si, DimensionlessUnit.SI);
389     }
390 
391     /**
392      * Calculate the multiplication of Dimensionless and AbsorbedDose, which results in a AbsorbedDose scalar.
393      * @param v Dimensionless scalar
394      * @return AbsorbedDose scalar as a multiplication of Dimensionless and AbsorbedDose
395      */
396     public final AbsorbedDosear/AbsorbedDose.html#AbsorbedDose">AbsorbedDose times(final AbsorbedDose v)
397     {
398         return new AbsorbedDose(this.si * v.si, AbsorbedDoseUnit.SI);
399     }
400 
401     /**
402      * Calculate the multiplication of Dimensionless and Acceleration, which results in a Acceleration scalar.
403      * @param v Dimensionless scalar
404      * @return Acceleration scalar as a multiplication of Dimensionless and Acceleration
405      */
406     public final Accelerationar/Acceleration.html#Acceleration">Acceleration times(final Acceleration v)
407     {
408         return new Acceleration(this.si * v.si, AccelerationUnit.SI);
409     }
410 
411     /**
412      * Calculate the multiplication of Dimensionless and AmountOfSubstance, which results in a AmountOfSubstance scalar.
413      * @param v Dimensionless scalar
414      * @return AmountOfSubstance scalar as a multiplication of Dimensionless and AmountOfSubstance
415      */
416     public final AmountOfSubstanceountOfSubstance.html#AmountOfSubstance">AmountOfSubstance times(final AmountOfSubstance v)
417     {
418         return new AmountOfSubstance(this.si * v.si, AmountOfSubstanceUnit.SI);
419     }
420 
421     /**
422      * Calculate the multiplication of Dimensionless and Angle, which results in a Angle scalar.
423      * @param v Dimensionless scalar
424      * @return Angle scalar as a multiplication of Dimensionless and Angle
425      */
426     public final Anglele/scalar/Angle.html#Angle">Angle times(final Angle v)
427     {
428         return new Angle(this.si * v.si, AngleUnit.SI);
429     }
430 
431     /**
432      * Calculate the multiplication of Dimensionless and SolidAngle, which results in a SolidAngle scalar.
433      * @param v Dimensionless scalar
434      * @return SolidAngle scalar as a multiplication of Dimensionless and SolidAngle
435      */
436     public final SolidAnglealar/SolidAngle.html#SolidAngle">SolidAngle times(final SolidAngle v)
437     {
438         return new SolidAngle(this.si * v.si, SolidAngleUnit.SI);
439     }
440 
441     /**
442      * Calculate the multiplication of Dimensionless and Area, which results in a Area scalar.
443      * @param v Dimensionless scalar
444      * @return Area scalar as a multiplication of Dimensionless and Area
445      */
446     public final Areable/scalar/Area.html#Area">Area times(final Area v)
447     {
448         return new Area(this.si * v.si, AreaUnit.SI);
449     }
450 
451     /**
452      * Calculate the multiplication of Dimensionless and CatalyticActivity, which results in a CatalyticActivity scalar.
453      * @param v Dimensionless scalar
454      * @return CatalyticActivity scalar as a multiplication of Dimensionless and CatalyticActivity
455      */
456     public final CatalyticActivitytalyticActivity.html#CatalyticActivity">CatalyticActivity times(final CatalyticActivity v)
457     {
458         return new CatalyticActivity(this.si * v.si, CatalyticActivityUnit.SI);
459     }
460 
461     /**
462      * Calculate the multiplication of Dimensionless and Density, which results in a Density scalar.
463      * @param v Dimensionless scalar
464      * @return Density scalar as a multiplication of Dimensionless and Density
465      */
466     public final Density/scalar/Density.html#Density">Density times(final Density v)
467     {
468         return new Density(this.si * v.si, DensityUnit.SI);
469     }
470 
471     /**
472      * Calculate the multiplication of Dimensionless and Dimensionless, which results in a Dimensionless scalar.
473      * @param v Dimensionless scalar
474      * @return Dimensionless scalar as a multiplication of Dimensionless and Dimensionless
475      */
476     public final Dimensionlessr/Dimensionless.html#Dimensionless">Dimensionless times(final Dimensionless v)
477     {
478         return new Dimensionless(this.si * v.si, DimensionlessUnit.SI);
479     }
480 
481     /**
482      * Calculate the multiplication of Dimensionless and ElectricalCapacitance, which results in a ElectricalCapacitance scalar.
483      * @param v Dimensionless scalar
484      * @return ElectricalCapacitance scalar as a multiplication of Dimensionless and ElectricalCapacitance
485      */
486     public final ElectricalCapacitanceicalCapacitance.html#ElectricalCapacitance">ElectricalCapacitance times(final ElectricalCapacitance v)
487     {
488         return new ElectricalCapacitance(this.si * v.si, ElectricalCapacitanceUnit.SI);
489     }
490 
491     /**
492      * Calculate the multiplication of Dimensionless and ElectricalCharge, which results in a ElectricalCharge scalar.
493      * @param v Dimensionless scalar
494      * @return ElectricalCharge scalar as a multiplication of Dimensionless and ElectricalCharge
495      */
496     public final ElectricalChargelectricalCharge.html#ElectricalCharge">ElectricalCharge times(final ElectricalCharge v)
497     {
498         return new ElectricalCharge(this.si * v.si, ElectricalChargeUnit.SI);
499     }
500 
501     /**
502      * Calculate the multiplication of Dimensionless and ElectricalConductance, which results in a ElectricalConductance scalar.
503      * @param v Dimensionless scalar
504      * @return ElectricalConductance scalar as a multiplication of Dimensionless and ElectricalConductance
505      */
506     public final ElectricalConductanceicalConductance.html#ElectricalConductance">ElectricalConductance times(final ElectricalConductance v)
507     {
508         return new ElectricalConductance(this.si * v.si, ElectricalConductanceUnit.SI);
509     }
510 
511     /**
512      * Calculate the multiplication of Dimensionless and ElectricalCurrent, which results in a ElectricalCurrent scalar.
513      * @param v Dimensionless scalar
514      * @return ElectricalCurrent scalar as a multiplication of Dimensionless and ElectricalCurrent
515      */
516     public final ElectricalCurrentectricalCurrent.html#ElectricalCurrent">ElectricalCurrent times(final ElectricalCurrent v)
517     {
518         return new ElectricalCurrent(this.si * v.si, ElectricalCurrentUnit.SI);
519     }
520 
521     /**
522      * Calculate the multiplication of Dimensionless and ElectricalInductance, which results in a ElectricalInductance scalar.
523      * @param v Dimensionless scalar
524      * @return ElectricalInductance scalar as a multiplication of Dimensionless and ElectricalInductance
525      */
526     public final ElectricalInductancericalInductance.html#ElectricalInductance">ElectricalInductance times(final ElectricalInductance v)
527     {
528         return new ElectricalInductance(this.si * v.si, ElectricalInductanceUnit.SI);
529     }
530 
531     /**
532      * Calculate the multiplication of Dimensionless and ElectricalPotential, which results in a ElectricalPotential scalar.
533      * @param v Dimensionless scalar
534      * @return ElectricalPotential scalar as a multiplication of Dimensionless and ElectricalPotential
535      */
536     public final ElectricalPotentialtricalPotential.html#ElectricalPotential">ElectricalPotential times(final ElectricalPotential v)
537     {
538         return new ElectricalPotential(this.si * v.si, ElectricalPotentialUnit.SI);
539     }
540 
541     /**
542      * Calculate the multiplication of Dimensionless and ElectricalResistance, which results in a ElectricalResistance scalar.
543      * @param v Dimensionless scalar
544      * @return ElectricalResistance scalar as a multiplication of Dimensionless and ElectricalResistance
545      */
546     public final ElectricalResistancericalResistance.html#ElectricalResistance">ElectricalResistance times(final ElectricalResistance v)
547     {
548         return new ElectricalResistance(this.si * v.si, ElectricalResistanceUnit.SI);
549     }
550 
551     /**
552      * Calculate the multiplication of Dimensionless and Energy, which results in a Energy scalar.
553      * @param v Dimensionless scalar
554      * @return Energy scalar as a multiplication of Dimensionless and Energy
555      */
556     public final Energye/scalar/Energy.html#Energy">Energy times(final Energy v)
557     {
558         return new Energy(this.si * v.si, EnergyUnit.SI);
559     }
560 
561     /**
562      * Calculate the multiplication of Dimensionless and EquivalentDose, which results in a EquivalentDose scalar.
563      * @param v Dimensionless scalar
564      * @return EquivalentDose scalar as a multiplication of Dimensionless and EquivalentDose
565      */
566     public final EquivalentDose/EquivalentDose.html#EquivalentDose">EquivalentDose times(final EquivalentDose v)
567     {
568         return new EquivalentDose(this.si * v.si, EquivalentDoseUnit.SI);
569     }
570 
571     /**
572      * Calculate the multiplication of Dimensionless and FlowMass, which results in a FlowMass scalar.
573      * @param v Dimensionless scalar
574      * @return FlowMass scalar as a multiplication of Dimensionless and FlowMass
575      */
576     public final FlowMassscalar/FlowMass.html#FlowMass">FlowMass times(final FlowMass v)
577     {
578         return new FlowMass(this.si * v.si, FlowMassUnit.SI);
579     }
580 
581     /**
582      * Calculate the multiplication of Dimensionless and FlowVolume, which results in a FlowVolume scalar.
583      * @param v Dimensionless scalar
584      * @return FlowVolume scalar as a multiplication of Dimensionless and FlowVolume
585      */
586     public final FlowVolumealar/FlowVolume.html#FlowVolume">FlowVolume times(final FlowVolume v)
587     {
588         return new FlowVolume(this.si * v.si, FlowVolumeUnit.SI);
589     }
590 
591     /**
592      * Calculate the multiplication of Dimensionless and Force, which results in a Force scalar.
593      * @param v Dimensionless scalar
594      * @return Force scalar as a multiplication of Dimensionless and Force
595      */
596     public final Forcele/scalar/Force.html#Force">Force times(final Force v)
597     {
598         return new Force(this.si * v.si, ForceUnit.SI);
599     }
600 
601     /**
602      * Calculate the multiplication of Dimensionless and Frequency, which results in a Frequency scalar.
603      * @param v Dimensionless scalar
604      * @return Frequency scalar as a multiplication of Dimensionless and Frequency
605      */
606     public final Frequencycalar/Frequency.html#Frequency">Frequency times(final Frequency v)
607     {
608         return new Frequency(this.si * v.si, FrequencyUnit.SI);
609     }
610 
611     /**
612      * Calculate the multiplication of Dimensionless and Illuminance, which results in a Illuminance scalar.
613      * @param v Dimensionless scalar
614      * @return Illuminance scalar as a multiplication of Dimensionless and Illuminance
615      */
616     public final Illuminancelar/Illuminance.html#Illuminance">Illuminance times(final Illuminance v)
617     {
618         return new Illuminance(this.si * v.si, IlluminanceUnit.SI);
619     }
620 
621     /**
622      * Calculate the multiplication of Dimensionless and Length, which results in a Length scalar.
623      * @param v Dimensionless scalar
624      * @return Length scalar as a multiplication of Dimensionless and Length
625      */
626     public final Lengthe/scalar/Length.html#Length">Length times(final Length v)
627     {
628         return new Length(this.si * v.si, LengthUnit.SI);
629     }
630 
631     /**
632      * Calculate the multiplication of Dimensionless and LinearDensity, which results in a LinearDensity scalar.
633      * @param v Dimensionless scalar
634      * @return LinearDensity scalar as a multiplication of Dimensionless and LinearDensity
635      */
636     public final LinearDensityr/LinearDensity.html#LinearDensity">LinearDensity times(final LinearDensity v)
637     {
638         return new LinearDensity(this.si * v.si, LinearDensityUnit.SI);
639     }
640 
641     /**
642      * Calculate the multiplication of Dimensionless and LuminousFlux, which results in a LuminousFlux scalar.
643      * @param v Dimensionless scalar
644      * @return LuminousFlux scalar as a multiplication of Dimensionless and LuminousFlux
645      */
646     public final LuminousFluxar/LuminousFlux.html#LuminousFlux">LuminousFlux times(final LuminousFlux v)
647     {
648         return new LuminousFlux(this.si * v.si, LuminousFluxUnit.SI);
649     }
650 
651     /**
652      * Calculate the multiplication of Dimensionless and LuminousIntensity, which results in a LuminousIntensity scalar.
653      * @param v Dimensionless scalar
654      * @return LuminousIntensity scalar as a multiplication of Dimensionless and LuminousIntensity
655      */
656     public final LuminousIntensityminousIntensity.html#LuminousIntensity">LuminousIntensity times(final LuminousIntensity v)
657     {
658         return new LuminousIntensity(this.si * v.si, LuminousIntensityUnit.SI);
659     }
660 
661     /**
662      * Calculate the multiplication of Dimensionless and MagneticFluxDensity, which results in a MagneticFluxDensity scalar.
663      * @param v Dimensionless scalar
664      * @return MagneticFluxDensity scalar as a multiplication of Dimensionless and MagneticFluxDensity
665      */
666     public final MagneticFluxDensityeticFluxDensity.html#MagneticFluxDensity">MagneticFluxDensity times(final MagneticFluxDensity v)
667     {
668         return new MagneticFluxDensity(this.si * v.si, MagneticFluxDensityUnit.SI);
669     }
670 
671     /**
672      * Calculate the multiplication of Dimensionless and MagneticFlux, which results in a MagneticFlux scalar.
673      * @param v Dimensionless scalar
674      * @return MagneticFlux scalar as a multiplication of Dimensionless and MagneticFlux
675      */
676     public final MagneticFluxar/MagneticFlux.html#MagneticFlux">MagneticFlux times(final MagneticFlux v)
677     {
678         return new MagneticFlux(this.si * v.si, MagneticFluxUnit.SI);
679     }
680 
681     /**
682      * Calculate the multiplication of Dimensionless and Mass, which results in a Mass scalar.
683      * @param v Dimensionless scalar
684      * @return Mass scalar as a multiplication of Dimensionless and Mass
685      */
686     public final Massble/scalar/Mass.html#Mass">Mass times(final Mass v)
687     {
688         return new Mass(this.si * v.si, MassUnit.SI);
689     }
690 
691     /**
692      * Calculate the multiplication of Dimensionless and Power, which results in a Power scalar.
693      * @param v Dimensionless scalar
694      * @return Power scalar as a multiplication of Dimensionless and Power
695      */
696     public final Powerle/scalar/Power.html#Power">Power times(final Power v)
697     {
698         return new Power(this.si * v.si, PowerUnit.SI);
699     }
700 
701     /**
702      * Calculate the multiplication of Dimensionless and Pressure, which results in a Pressure scalar.
703      * @param v Dimensionless scalar
704      * @return Pressure scalar as a multiplication of Dimensionless and Pressure
705      */
706     public final Pressurescalar/Pressure.html#Pressure">Pressure times(final Pressure v)
707     {
708         return new Pressure(this.si * v.si, PressureUnit.SI);
709     }
710 
711     /**
712      * Calculate the multiplication of Dimensionless and RadioActivity, which results in a RadioActivity scalar.
713      * @param v Dimensionless scalar
714      * @return RadioActivity scalar as a multiplication of Dimensionless and RadioActivity
715      */
716     public final RadioActivityr/RadioActivity.html#RadioActivity">RadioActivity times(final RadioActivity v)
717     {
718         return new RadioActivity(this.si * v.si, RadioActivityUnit.SI);
719     }
720 
721     /**
722      * Calculate the multiplication of Dimensionless and Speed, which results in a Speed scalar.
723      * @param v Dimensionless scalar
724      * @return Speed scalar as a multiplication of Dimensionless and Speed
725      */
726     public final Speedle/scalar/Speed.html#Speed">Speed times(final Speed v)
727     {
728         return new Speed(this.si * v.si, SpeedUnit.SI);
729     }
730 
731     /**
732      * Calculate the multiplication of Dimensionless and Temperature, which results in a Temperature scalar.
733      * @param v Dimensionless scalar
734      * @return Temperature scalar as a multiplication of Dimensionless and Temperature
735      */
736     public final Temperaturelar/Temperature.html#Temperature">Temperature times(final Temperature v)
737     {
738         return new Temperature(this.si * v.si, TemperatureUnit.SI);
739     }
740 
741     /**
742      * Calculate the multiplication of Dimensionless and Duration, which results in a Duration scalar.
743      * @param v Dimensionless scalar
744      * @return Duration scalar as a multiplication of Dimensionless and Duration
745      */
746     public final Durationscalar/Duration.html#Duration">Duration times(final Duration v)
747     {
748         return new Duration(this.si * v.si, DurationUnit.SI);
749     }
750 
751     /**
752      * Calculate the multiplication of Dimensionless and Torque, which results in a Torque scalar.
753      * @param v Dimensionless scalar
754      * @return Torque scalar as a multiplication of Dimensionless and Torque
755      */
756     public final Torquee/scalar/Torque.html#Torque">Torque times(final Torque v)
757     {
758         return new Torque(this.si * v.si, TorqueUnit.SI);
759     }
760 
761     /**
762      * Calculate the multiplication of Dimensionless and Volume, which results in a Volume scalar.
763      * @param v Dimensionless scalar
764      * @return Volume scalar as a multiplication of Dimensionless and Volume
765      */
766     public final Volumee/scalar/Volume.html#Volume">Volume times(final Volume v)
767     {
768         return new Volume(this.si * v.si, VolumeUnit.SI);
769     }
770 
771     /**
772      * Calculate the division of Dimensionless and Length, which results in a LinearDensity scalar.
773      * @param v Dimensionless scalar
774      * @return LinearDensity scalar as a division of Dimensionless and Length
775      */
776     public final LinearDensity divide(final Length v)
777     {
778         return new LinearDensity(this.si / v.si, LinearDensityUnit.SI);
779     }
780 
781     /**
782      * Calculate the division of Dimensionless and LinearDensity, which results in a Length scalar.
783      * @param v Dimensionless scalar
784      * @return Length scalar as a division of Dimensionless and LinearDensity
785      */
786     public final Length divide(final LinearDensity v)
787     {
788         return new Length(this.si / v.si, LengthUnit.SI);
789     }
790 
791     /**
792      * Calculate the division of Dimensionless and Duration, which results in a Frequency scalar.
793      * @param v Dimensionless scalar
794      * @return Frequency scalar as a division of Dimensionless and Duration
795      */
796     public final Frequency divide(final Duration v)
797     {
798         return new Frequency(this.si / v.si, FrequencyUnit.SI);
799     }
800 
801     /**
802      * Calculate the division of Dimensionless and Frequency, which results in a Duration scalar.
803      * @param v Dimensionless scalar
804      * @return Duration scalar as a division of Dimensionless and Frequency
805      */
806     public final Duration divide(final Frequency v)
807     {
808         return new Duration(this.si / v.si, DurationUnit.SI);
809     }
810 
811 }