java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.gql.ConfigP15
public record ConfigP15(Float elections_end_before, Float elections_start_before, Float stake_held_for, Float validators_elected_for)
extends Record
Election parameters;
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theelections_end_before
record component.Returns the value of theelections_start_before
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thestake_held_for
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thevalidators_elected_for
record component.
-
Constructor Details
-
ConfigP15
public ConfigP15(Float elections_end_before, Float elections_start_before, Float stake_held_for, Float validators_elected_for) Creates an instance of aConfigP15
record class.- Parameters:
elections_end_before
- the value for theelections_end_before
record componentelections_start_before
- the value for theelections_start_before
record componentstake_held_for
- the value for thestake_held_for
record componentvalidators_elected_for
- the value for thevalidators_elected_for
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
elections_end_before
Returns the value of theelections_end_before
record component.- Returns:
- the value of the
elections_end_before
record component
-
elections_start_before
Returns the value of theelections_start_before
record component.- Returns:
- the value of the
elections_start_before
record component
-
stake_held_for
Returns the value of thestake_held_for
record component.- Returns:
- the value of the
stake_held_for
record component
-
validators_elected_for
Returns the value of thevalidators_elected_for
record component.- Returns:
- the value of the
validators_elected_for
record component
-