Record Class EventLogicCopyService.EventData
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.event.api.actions.logiccopy.EventLogicCopyService.EventData
- All Implemented Interfaces:
Serializable
- Enclosing class:
EventLogicCopyService
public static record EventLogicCopyService.EventData(String key, @Nullable String parentKey, @Nullable String relationshipKey, String display, String label, String abbreviation, int level, @Nullable org.joda.time.LocalDate startDate, @Nullable org.joda.time.LocalDate endDate, EventLogicCopyService.CopyConfiguration configuration)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEventData(String key, @Nullable String parentKey, @Nullable String relationshipKey, String display, String label, String abbreviation, int level, @Nullable org.joda.time.LocalDate startDate, @Nullable org.joda.time.LocalDate endDate, EventLogicCopyService.CopyConfiguration configuration) Creates an instance of aEventDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theabbreviationrecord component.Returns the value of theconfigurationrecord component.display()Returns the value of thedisplayrecord component.@Nullable org.joda.time.LocalDateendDate()Returns the value of theendDaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.label()Returns the value of thelabelrecord component.intlevel()Returns the value of thelevelrecord component.@Nullable StringReturns the value of theparentKeyrecord component.@Nullable StringReturns the value of therelationshipKeyrecord component.@Nullable org.joda.time.LocalDateReturns the value of thestartDaterecord component.final StringtoString()Returns a string representation of this record class.withConfiguration(EventLogicCopyService.CopyConfiguration configuration)
-
Constructor Details
-
EventData
public EventData(String key, @Nullable @Nullable String parentKey, @Nullable @Nullable String relationshipKey, String display, String label, String abbreviation, int level, @Nullable @Nullable org.joda.time.LocalDate startDate, @Nullable @Nullable org.joda.time.LocalDate endDate, EventLogicCopyService.CopyConfiguration configuration) Creates an instance of aEventDatarecord class.- Parameters:
key- the value for thekeyrecord componentparentKey- the value for theparentKeyrecord componentrelationshipKey- the value for therelationshipKeyrecord componentdisplay- the value for thedisplayrecord componentlabel- the value for thelabelrecord componentabbreviation- the value for theabbreviationrecord componentlevel- the value for thelevelrecord componentstartDate- the value for thestartDaterecord componentendDate- the value for theendDaterecord componentconfiguration- the value for theconfigurationrecord component
-
-
Method Details
-
withConfiguration
public EventLogicCopyService.EventData withConfiguration(EventLogicCopyService.CopyConfiguration configuration) -
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 '=='. -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
parentKey
Returns the value of theparentKeyrecord component.- Returns:
- the value of the
parentKeyrecord component
-
relationshipKey
Returns the value of therelationshipKeyrecord component.- Returns:
- the value of the
relationshipKeyrecord component
-
display
Returns the value of thedisplayrecord component.- Returns:
- the value of the
displayrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
abbreviation
Returns the value of theabbreviationrecord component.- Returns:
- the value of the
abbreviationrecord component
-
level
public int level()Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
startDate
@Nullable public @Nullable org.joda.time.LocalDate startDate()Returns the value of thestartDaterecord component.- Returns:
- the value of the
startDaterecord component
-
endDate
@Nullable public @Nullable org.joda.time.LocalDate endDate()Returns the value of theendDaterecord component.- Returns:
- the value of the
endDaterecord component
-
configuration
Returns the value of theconfigurationrecord component.- Returns:
- the value of the
configurationrecord component
-