Contents
Record Class HytaleGenerator.Concurrency
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.hytalegenerator.plugin.HytaleGenerator.Concurrency
- Enclosing class:
HytaleGenerator
-
Constructor Summary
ConstructorsConstructorDescriptionConcurrency(int low, int normal, int high) Creates an instance of aConcurrencyrecord 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.inthigh()Returns the value of thehighrecord component.intlow()Returns the value of thelowrecord component.intnormal()Returns the value of thenormalrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Concurrency
public Concurrency(int low, int normal, int high) Creates an instance of aConcurrencyrecord class.- Parameters:
low- the value for thelowrecord componentnormal- the value for thenormalrecord componenthigh- the value for thehighrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
low
public int low()Returns the value of thelowrecord component.- Returns:
- the value of the
lowrecord component
-
normal
public int normal()Returns the value of thenormalrecord component.- Returns:
- the value of the
normalrecord component
-
high
public int high()Returns the value of thehighrecord component.- Returns:
- the value of the
highrecord component
-