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
ConstructorsConstructorDescriptionForcedMainteanceInformations(String comment, UserIdentity initiator, ZonedDateTime since) Creates an instance of aForcedMainteanceInformationsrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncomment()Returns the value of thecommentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinitiatorrecord component.since()Returns the value of thesincerecord component.final StringtoString()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 thecommentrecord component.- Returns:
- the value of the
commentrecord component
-
initiator
Returns the value of theinitiatorrecord component.- Returns:
- the value of the
initiatorrecord component
-
since
Returns the value of thesincerecord component.- Returns:
- the value of the
sincerecord component
-