Record Class CalendarEventResultBean.CalendarEventBean

java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.calendar.impl.rest.beans.CalendarEventResultBean.CalendarEventBean
Enclosing class:
CalendarEventResultBean

public static record CalendarEventResultBean.CalendarEventBean(long start, long end, String label, @Nullable String description, String conflict, @Nullable CalendarEventResultBean.SourceBean source, String color, boolean isReadonly, boolean isEditable) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    CalendarEventBean(long start, long end, String label, @Nullable String description, String conflict, @Nullable CalendarEventResultBean.SourceBean source, String color, boolean isReadonly, boolean isEditable)
    Creates an instance of a CalendarEventBean record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the color record component.
    Returns the value of the conflict record component.
    @Nullable String
    Returns the value of the description record component.
    long
    end()
    Returns the value of the end record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the isEditable record component.
    boolean
    Returns the value of the isReadonly record component.
    Returns the value of the label record component.
    Returns the value of the source record component.
    long
    Returns the value of the start record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CalendarEventBean

      public CalendarEventBean(long start, long end, String label, @Nullable String description, String conflict, @Nullable CalendarEventResultBean.SourceBean source, String color, boolean isReadonly, boolean isEditable)
      Creates an instance of a CalendarEventBean record class.
      Parameters:
      start - the value for the start record component
      end - the value for the end record component
      label - the value for the label record component
      description - the value for the description record component
      conflict - the value for the conflict record component
      source - the value for the source record component
      color - the value for the color record component
      isReadonly - the value for the isReadonly record component
      isEditable - the value for the isEditable record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • start

      public long start()
      Returns the value of the start record component.
      Returns:
      the value of the start record component
    • end

      public long end()
      Returns the value of the end record component.
      Returns:
      the value of the end record component
    • label

      public String label()
      Returns the value of the label record component.
      Returns:
      the value of the label record component
    • description

      public @Nullable String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • conflict

      public String conflict()
      Returns the value of the conflict record component.
      Returns:
      the value of the conflict record component
    • source

      public @Nullable CalendarEventResultBean.SourceBean source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • color

      public String color()
      Returns the value of the color record component.
      Returns:
      the value of the color record component
    • isReadonly

      public boolean isReadonly()
      Returns the value of the isReadonly record component.
      Returns:
      the value of the isReadonly record component
    • isEditable

      public boolean isEditable()
      Returns the value of the isEditable record component.
      Returns:
      the value of the isEditable record component