Package net.minecraft.util.debugchart
Record Class DebugSampleSubscriptionTracker.SubscriptionStartedAt
java.lang.Object
java.lang.Record
net.minecraft.util.debugchart.DebugSampleSubscriptionTracker.SubscriptionStartedAt
- Enclosing class:
DebugSampleSubscriptionTracker
static record DebugSampleSubscriptionTracker.SubscriptionStartedAt(long millis, int tick)
extends Record
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSubscriptionStartedAt
(long millis, int tick) Creates an instance of aSubscriptionStartedAt
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.long
millis()
Returns the value of themillis
record component.int
tick()
Returns the value of thetick
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
millis
private final long millisThe field for themillis
record component. -
tick
private final int tickThe field for thetick
record component.
-
-
Constructor Details
-
SubscriptionStartedAt
SubscriptionStartedAt(long millis, int tick) Creates an instance of aSubscriptionStartedAt
record class.- Parameters:
millis
- the value for themillis
record componenttick
- the value for thetick
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 with '=='. -
millis
public long millis()Returns the value of themillis
record component.- Returns:
- the value of the
millis
record component
-
tick
public int tick()Returns the value of thetick
record component.- Returns:
- the value of the
tick
record component
-