Record Class InstancerKey<I extends Instance>
java.lang.Object
java.lang.Record
dev.engine_room.flywheel.backend.engine.InstancerKey<I>
public record InstancerKey<I extends Instance>(Environment environment, InstanceType<I extends Instance> type, Model model, int bias)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInstancerKey(Environment environment, InstanceType<I> type, Model model, int bias) Creates an instance of aInstancerKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbias()Returns the value of thebiasrecord component.Returns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
InstancerKey
Creates an instance of aInstancerKeyrecord class.- Parameters:
environment- the value for theenvironmentrecord componenttype- the value for thetyperecord componentmodel- the value for themodelrecord componentbias- the value for thebiasrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
environment
Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
bias
public int bias()Returns the value of thebiasrecord component.- Returns:
- the value of the
biasrecord component
-