Record Class StartupNotificationManager.AgeMessage
java.lang.Object
java.lang.Record
net.minecraftforge.fml.loading.progress.StartupNotificationManager.AgeMessage
- Enclosing class:
- StartupNotificationManager
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionAgeMessage(int age, Message message) Creates an instance of aAgeMessagerecord class.
- 
Method SummaryModifier and TypeMethodDescriptionintage()Returns the value of theagerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
ageprivate final int ageThe field for theagerecord component.
- 
messageThe field for themessagerecord component.
 
- 
- 
Constructor Details- 
AgeMessageCreates an instance of aAgeMessagerecord class.- Parameters:
- age- the value for the- agerecord component
- message- the value for the- messagerecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
agepublic int age()Returns the value of theagerecord component.- Returns:
- the value of the agerecord component
 
- 
messageReturns the value of themessagerecord component.- Returns:
- the value of the messagerecord component
 
 
-