Record Class BlueMindVacation
java.lang.Object
java.lang.Record
org.exoplatform.bluemind.client.model.BlueMindVacation
- Record Components:
enabled- whether the reply is onstart- the first instant, in epoch milliseconds, or null for noneend- the last instant, in epoch milliseconds, or null for nonesubject- the reply's subject, or nulltext- the plain-text body, or nulltextHtml- the HTML body, or null
public record BlueMindVacation(boolean enabled, Long start, Long end, String subject, String text, String textHtml)
extends Record
A mailbox's automatic reply as BlueMind stores it: the members of
MailFilter.Vacation (core API javadoc 5.0.7563), read and written
through _vacation. Texts are kept as the server holds them, line
breaks and spaces included.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Returns the value of theenabledrecord component.end()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.start()Returns the value of thestartrecord component.subject()Returns the value of thesubjectrecord component.text()Returns the value of thetextrecord component.textHtml()Returns the value of thetextHtmlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlueMindVacation
public BlueMindVacation(boolean enabled, Long start, Long end, String subject, String text, String textHtml) Creates an instance of aBlueMindVacationrecord class.- Parameters:
enabled- the value for theenabledrecord componentstart- the value for thestartrecord componentend- the value for theendrecord componentsubject- the value for thesubjectrecord componenttext- the value for thetextrecord componenttextHtml- the value for thetextHtmlrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
textHtml
Returns the value of thetextHtmlrecord component.- Returns:
- the value of the
textHtmlrecord component
-