Record Class UpdateTimeEntry

java.lang.Object
java.lang.Record
ch.martinelli.mite4java.api.UpdateTimeEntry

public record UpdateTimeEntry(LocalDate dateAt, Integer minutes, String note, Integer userId, Integer projectId, Integer serviceId, Boolean locked, Boolean force, Integer startedTime) extends Record
  • Constructor Details

    • UpdateTimeEntry

      public UpdateTimeEntry(LocalDate dateAt, Integer minutes, String note, Integer userId, Integer projectId, Integer serviceId, Boolean locked, Boolean force, Integer startedTime)
      Creates an instance of a UpdateTimeEntry record class.
      Parameters:
      dateAt - the value for the dateAt record component
      minutes - the value for the minutes record component
      note - the value for the note record component
      userId - the value for the userId record component
      projectId - the value for the projectId record component
      serviceId - the value for the serviceId record component
      locked - the value for the locked record component
      force - the value for the force record component
      startedTime - the value for the startedTime record component
  • Method Details

    • builder

      public static UpdateTimeEntry.Builder builder()
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • dateAt

      public LocalDate dateAt()
      Returns the value of the dateAt record component.
      Returns:
      the value of the dateAt record component
    • minutes

      public Integer minutes()
      Returns the value of the minutes record component.
      Returns:
      the value of the minutes record component
    • note

      public String note()
      Returns the value of the note record component.
      Returns:
      the value of the note record component
    • userId

      public Integer userId()
      Returns the value of the userId record component.
      Returns:
      the value of the userId record component
    • projectId

      public Integer projectId()
      Returns the value of the projectId record component.
      Returns:
      the value of the projectId record component
    • serviceId

      public Integer serviceId()
      Returns the value of the serviceId record component.
      Returns:
      the value of the serviceId record component
    • locked

      public Boolean locked()
      Returns the value of the locked record component.
      Returns:
      the value of the locked record component
    • force

      public Boolean force()
      Returns the value of the force record component.
      Returns:
      the value of the force record component
    • startedTime

      public Integer startedTime()
      Returns the value of the startedTime record component.
      Returns:
      the value of the startedTime record component