Package org.djunits.value.base
Interface Scalar.Rel<U extends Unit<U>,R extends Scalar.Rel<U,R>>
- Type Parameters:
U
- the unitR
- the relative scalar
- All Superinterfaces:
Cloneable
,Comparable<R>
,Relative<U,R>
,Scalar<U,R>
,Serializable
,Value<U,R>
,ValueFunctions<U,R>
- All Known Subinterfaces:
DoubleScalarInterface.Rel<U,R>
,DoubleScalarInterface.RelWithAbs<AU,A,RU,R>
,FloatScalarInterface.Rel<U,R>
,FloatScalarInterface.RelWithAbs<AU,A,RU,R>
,Scalar.RelWithAbs<AU,A,RU,R>
- All Known Implementing Classes:
AbsorbedDose
,AbstractDoubleScalarRel
,AbstractDoubleScalarRelWithAbs
,AbstractFloatScalarRel
,AbstractFloatScalarRelWithAbs
,Acceleration
,AmountOfSubstance
,Angle
,Area
,CatalyticActivity
,Density
,Dimensionless
,Duration
,ElectricalCapacitance
,ElectricalCharge
,ElectricalConductance
,ElectricalCurrent
,ElectricalInductance
,ElectricalPotential
,ElectricalResistance
,Energy
,EquivalentDose
,FloatAbsorbedDose
,FloatAcceleration
,FloatAmountOfSubstance
,FloatAngle
,FloatArea
,FloatCatalyticActivity
,FloatDensity
,FloatDimensionless
,FloatDuration
,FloatElectricalCapacitance
,FloatElectricalCharge
,FloatElectricalConductance
,FloatElectricalCurrent
,FloatElectricalInductance
,FloatElectricalPotential
,FloatElectricalResistance
,FloatEnergy
,FloatEquivalentDose
,FloatFlowMass
,FloatFlowVolume
,FloatForce
,FloatFrequency
,FloatIlluminance
,FloatLength
,FloatLinearDensity
,FloatLuminousFlux
,FloatLuminousIntensity
,FloatMagneticFlux
,FloatMagneticFluxDensity
,FloatMass
,FloatPower
,FloatPressure
,FloatRadioActivity
,FloatSIScalar
,FloatSolidAngle
,FloatSpeed
,FloatTemperature
,FloatTorque
,FloatVolume
,FlowMass
,FlowVolume
,Force
,Frequency
,Illuminance
,Length
,LinearDensity
,LuminousFlux
,LuminousIntensity
,MagneticFlux
,MagneticFluxDensity
,Mass
,Power
,Pressure
,RadioActivity
,SIScalar
,SolidAngle
,Speed
,Temperature
,Torque
,Volume
public static interface Scalar.Rel<U extends Unit<U>,R extends Scalar.Rel<U,R>> extends Scalar<U,R>, Relative<U,R>
Methods for Relative Scalar.
Copyright (c) 2019-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
- Author:
- Alexander Verbraeck
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.djunits.value.base.Scalar
Scalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,A extends Scalar.Abs<AU,A,RU,R>,RU extends Unit<RU>,R extends Scalar.RelWithAbs<AU,A,RU,R>>, Scalar.Rel<U extends Unit<U>,R extends Scalar.Rel<U,R>>, Scalar.RelWithAbs<AU extends AbsoluteLinearUnit<AU,RU>,A extends Scalar.Abs<AU,A,RU,R>,RU extends Unit<RU>,R extends Scalar.RelWithAbs<AU,A,RU,R>>
-
Method Summary
Methods inherited from interface org.djunits.value.base.Scalar
eq, eq0, ge, ge0, gt, gt0, le, le0, lt, lt0, ne, ne0, toDisplayString, toDisplayString, toTextualString, toTextualString
Methods inherited from interface org.djunits.value.Value
getDisplayUnit, isAbsolute, isRelative, setDisplayUnit, toString, toString, toString, toString
-
Method Details
-
plus
Add a Relative value to this Relative value. A new value is returned due to immutability.- Parameters:
increment
- R; the value to add- Returns:
- R; the sum of this value and the operand as a new object
-
minus
Subtract a Relative value from this Relative value. A new value is returned due to immutability.- Parameters:
decrement
- R; the value to subtract- Returns:
- R; the difference of this value and the operand
-