Record Class WallConfig.DiffractionConfig
java.lang.Object
java.lang.Record
fr.dreamin.dreamvoice.api.wall.model.WallConfig.DiffractionConfig
- Enclosing class:
WallConfig
public static record WallConfig.DiffractionConfig(boolean enabled, double maxBypassWidth, double maxBypassHeight, double maxPathDistance, double diffractionLossDb, double lossPerMeter)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDiffractionConfig(boolean enabled, double maxBypassWidth, double maxBypassHeight, double maxPathDistance, double diffractionLossDb, double lossPerMeter) Creates an instance of aDiffractionConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic WallConfig.DiffractionConfigdefaults()doubleReturns the value of thediffractionLossDbrecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thelossPerMeterrecord component.doubleReturns the value of themaxBypassHeightrecord component.doubleReturns the value of themaxBypassWidthrecord component.doubleReturns the value of themaxPathDistancerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DiffractionConfig
public DiffractionConfig(boolean enabled, double maxBypassWidth, double maxBypassHeight, double maxPathDistance, double diffractionLossDb, double lossPerMeter) Creates an instance of aDiffractionConfigrecord class.- Parameters:
enabled- the value for theenabledrecord componentmaxBypassWidth- the value for themaxBypassWidthrecord componentmaxBypassHeight- the value for themaxBypassHeightrecord componentmaxPathDistance- the value for themaxPathDistancerecord componentdiffractionLossDb- the value for thediffractionLossDbrecord componentlossPerMeter- the value for thelossPerMeterrecord component
-
-
Method Details
-
defaults
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
maxBypassWidth
public double maxBypassWidth()Returns the value of themaxBypassWidthrecord component.- Returns:
- the value of the
maxBypassWidthrecord component
-
maxBypassHeight
public double maxBypassHeight()Returns the value of themaxBypassHeightrecord component.- Returns:
- the value of the
maxBypassHeightrecord component
-
maxPathDistance
public double maxPathDistance()Returns the value of themaxPathDistancerecord component.- Returns:
- the value of the
maxPathDistancerecord component
-
diffractionLossDb
public double diffractionLossDb()Returns the value of thediffractionLossDbrecord component.- Returns:
- the value of the
diffractionLossDbrecord component
-
lossPerMeter
public double lossPerMeter()Returns the value of thelossPerMeterrecord component.- Returns:
- the value of the
lossPerMeterrecord component
-