Package tv.hd3g.mailkit.notification
Record Class NotificationEnvironment
java.lang.Object
java.lang.Record
tv.hd3g.mailkit.notification.NotificationEnvironment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappName()Returns the value of theappNamerecord component.final booleanIndicates whether some other object is "equal to" this one.footer()Returns the value of thefooterrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinstanceNamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevendorNamerecord component.
-
Constructor Details
-
NotificationEnvironment
public NotificationEnvironment(String appName, String instanceName, String vendorName, List<String> footer) Creates an instance of aNotificationEnvironmentrecord class.- Parameters:
appName- the value for theappNamerecord componentinstanceName- the value for theinstanceNamerecord componentvendorName- the value for thevendorNamerecord componentfooter- the value for thefooterrecord 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). -
appName
Returns the value of theappNamerecord component.- Returns:
- the value of the
appNamerecord component
-
instanceName
Returns the value of theinstanceNamerecord component.- Returns:
- the value of the
instanceNamerecord component
-
vendorName
Returns the value of thevendorNamerecord component.- Returns:
- the value of the
vendorNamerecord component
-