Package org.ametys.runtime.servlet
Record Class RuntimeServlet.ForcedMainteanceInformations
java.lang.Object
java.lang.Record
org.ametys.runtime.servlet.RuntimeServlet.ForcedMainteanceInformations
- Record Components:
comment
- The comment to explain why the maintenance was startedinitiator
- The user that started the maintenancesince
- The date the maintenance was stated
- Enclosing class:
- RuntimeServlet
public static record RuntimeServlet.ForcedMainteanceInformations(String comment, UserIdentity initiator, ZonedDateTime since)
extends Record
Informations about the maintenance status when forced
-
Constructor Summary
ConstructorDescriptionForcedMainteanceInformations
(String comment, UserIdentity initiator, ZonedDateTime since) Creates an instance of aForcedMainteanceInformations
record class. -
Method Summary
Modifier and TypeMethodDescriptioncomment()
Returns the value of thecomment
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theinitiator
record component.since()
Returns the value of thesince
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
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
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)
. -
comment
Returns the value of thecomment
record component.- Returns:
- the value of the
comment
record component
-
initiator
Returns the value of theinitiator
record component.- Returns:
- the value of the
initiator
record component
-
since
Returns the value of thesince
record component.- Returns:
- the value of the
since
record component
-