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 aRoadConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.double
filter()
Returns the value of thefilter
record component.final int
hashCode()
Returns a hash code value for this object.double
Returns the value of theprobability
record component.double
Returns the value of theprobaRoads
record component.tiles()
Returns the value of thetiles
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RoadConfig
Creates an instance of aRoadConfig
record class.- Parameters:
tiles
- the value for thetiles
record componentprobaRoads
- the value for theprobaRoads
record componentprobability
- the value for theprobability
record componentfilter
- the value for thefilter
record 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 thecompare
method from their corresponding wrapper classes. -
tiles
-
probaRoads
public double probaRoads()Returns the value of theprobaRoads
record component.- Returns:
- the value of the
probaRoads
record component
-
probability
public double probability()Returns the value of theprobability
record component.- Returns:
- the value of the
probability
record component
-
filter
public double filter()Returns the value of thefilter
record component.- Returns:
- the value of the
filter
record component
-