Record Class Feature
java.lang.Object
java.lang.Record
zombie.iso.worldgen.biomes.Feature
public record Feature(List<TileGroup> tileGroups, int minSize, int maxSize, Probability probability)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFeature(List<TileGroup> tileGroups, int minSize, int maxSize, Probability probability) Creates an instance of aFeaturerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmaxSize()Returns the value of themaxSizerecord component.intminSize()Returns the value of theminSizerecord component.Returns the value of theprobabilityrecord component.Returns the value of thetileGroupsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Feature
Creates an instance of aFeaturerecord class.- Parameters:
tileGroups- the value for thetileGroupsrecord componentminSize- the value for theminSizerecord componentmaxSize- the value for themaxSizerecord componentprobability- the value for theprobabilityrecord 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. -
tileGroups
-
minSize
public int minSize()Returns the value of theminSizerecord component.- Returns:
- the value of the
minSizerecord component
-
maxSize
public int maxSize()Returns the value of themaxSizerecord component.- Returns:
- the value of the
maxSizerecord component
-
probability
Returns the value of theprobabilityrecord component.- Returns:
- the value of the
probabilityrecord component
-