Record Class RoadConfig
java.lang.Object
java.lang.Record
zombie.iso.worldgen.roads.RoadConfig
-
Constructor Summary
ConstructorsConstructorDescriptionRoadConfig(List<TileGroup> tiles, double probaRoads, double probability, double filter) Creates an instance of aRoadConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doublefilter()Returns the value of thefilterrecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theprobabilityrecord component.doubleReturns the value of theprobaRoadsrecord component.tiles()Returns the value of thetilesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RoadConfig
Creates an instance of aRoadConfigrecord class.- Parameters:
tiles- the value for thetilesrecord componentprobaRoads- the value for theprobaRoadsrecord componentprobability- the value for theprobabilityrecord componentfilter- the value for thefilterrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
tiles
-
probaRoads
public double probaRoads()Returns the value of theprobaRoadsrecord component.- Returns:
- the value of the
probaRoadsrecord component
-
probability
public double probability()Returns the value of theprobabilityrecord component.- Returns:
- the value of the
probabilityrecord component
-
filter
public double filter()Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-