Record Class ProfiledReloadInstance.State
java.lang.Object
java.lang.Record
net.minecraft.server.packs.resources.ProfiledReloadInstance.State
- Enclosing class:
ProfiledReloadInstance
public static record ProfiledReloadInstance.State(String name, AtomicLong preparationNanos, AtomicLong preparationCount, AtomicLong reloadNanos, AtomicLong reloadCount)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The field for thename
record component.private final AtomicLong
The field for thepreparationCount
record component.private final AtomicLong
The field for thepreparationNanos
record component.private final AtomicLong
The field for thereloadCount
record component.private final AtomicLong
The field for thereloadNanos
record component. -
Constructor Summary
ConstructorsConstructorDescriptionState
(String name, AtomicLong preparationNanos, AtomicLong preparationCount, AtomicLong reloadNanos, AtomicLong reloadCount) Creates an instance of aState
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.Returns the value of thepreparationCount
record component.Returns the value of thepreparationNanos
record component.Returns the value of thereloadCount
record component.Returns the value of thereloadNanos
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
name
The field for thename
record component. -
preparationNanos
The field for thepreparationNanos
record component. -
preparationCount
The field for thepreparationCount
record component. -
reloadNanos
The field for thereloadNanos
record component. -
reloadCount
The field for thereloadCount
record component.
-
-
Constructor Details
-
State
public State(String name, AtomicLong preparationNanos, AtomicLong preparationCount, AtomicLong reloadNanos, AtomicLong reloadCount) Creates an instance of aState
record class.- Parameters:
name
- the value for thename
record componentpreparationNanos
- the value for thepreparationNanos
record componentpreparationCount
- the value for thepreparationCount
record componentreloadNanos
- the value for thereloadNanos
record componentreloadCount
- the value for thereloadCount
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)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
preparationNanos
Returns the value of thepreparationNanos
record component.- Returns:
- the value of the
preparationNanos
record component
-
preparationCount
Returns the value of thepreparationCount
record component.- Returns:
- the value of the
preparationCount
record component
-
reloadNanos
Returns the value of thereloadNanos
record component.- Returns:
- the value of the
reloadNanos
record component
-
reloadCount
Returns the value of thereloadCount
record component.- Returns:
- the value of the
reloadCount
record component
-