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
ConstructorDescriptionEventData
(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 aEventData
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theabbreviation
record component.Returns the value of theconfiguration
record component.display()
Returns the value of thedisplay
record component.@Nullable org.joda.time.LocalDate
endDate()
Returns the value of theendDate
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.key()
Returns the value of thekey
record component.label()
Returns the value of thelabel
record component.int
level()
Returns the value of thelevel
record component.@Nullable String
Returns the value of theparentKey
record component.@Nullable String
Returns the value of therelationshipKey
record component.@Nullable org.joda.time.LocalDate
Returns the value of thestartDate
record component.final String
toString()
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 aEventData
record class.- Parameters:
key
- the value for thekey
record componentparentKey
- the value for theparentKey
record componentrelationshipKey
- the value for therelationshipKey
record componentdisplay
- the value for thedisplay
record componentlabel
- the value for thelabel
record componentabbreviation
- the value for theabbreviation
record componentlevel
- the value for thelevel
record componentstartDate
- the value for thestartDate
record componentendDate
- the value for theendDate
record componentconfiguration
- the value for theconfiguration
record 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 thekey
record component.- Returns:
- the value of the
key
record component
-
parentKey
Returns the value of theparentKey
record component.- Returns:
- the value of the
parentKey
record component
-
relationshipKey
Returns the value of therelationshipKey
record component.- Returns:
- the value of the
relationshipKey
record component
-
display
Returns the value of thedisplay
record component.- Returns:
- the value of the
display
record component
-
label
Returns the value of thelabel
record component.- Returns:
- the value of the
label
record component
-
abbreviation
Returns the value of theabbreviation
record component.- Returns:
- the value of the
abbreviation
record component
-
level
public int level()Returns the value of thelevel
record component.- Returns:
- the value of the
level
record component
-
startDate
@Nullable public @Nullable org.joda.time.LocalDate startDate()Returns the value of thestartDate
record component.- Returns:
- the value of the
startDate
record component
-
endDate
@Nullable public @Nullable org.joda.time.LocalDate endDate()Returns the value of theendDate
record component.- Returns:
- the value of the
endDate
record component
-
configuration
Returns the value of theconfiguration
record component.- Returns:
- the value of the
configuration
record component
-