Record Class ObservationsUpdate

java.lang.Object
java.lang.Record
org.mbari.vars.annosaurus.sdk.r1.models.ObservationsUpdate

public record ObservationsUpdate(Collection<UUID> observationUuids, String concept, String observer, String group, String activity) extends Record
  • Constructor Details

    • ObservationsUpdate

      public ObservationsUpdate(Collection<UUID> observationUuids, String concept, String observer, String group, String activity)
      Creates an instance of a ObservationsUpdate record class.
      Parameters:
      observationUuids - the value for the observationUuids record component
      concept - the value for the concept record component
      observer - the value for the observer record component
      group - the value for the group record component
      activity - the value for the activity record component
  • Method Details

    • forActivity

      public static ObservationsUpdate forActivity(Collection<UUID> observationUuids, String activity)
    • forConcept

      public static ObservationsUpdate forConcept(Collection<UUID> observationUuids, String concept)
    • forGroup

      public static ObservationsUpdate forGroup(Collection<UUID> observationUuids, String group)
    • forObserver

      public static ObservationsUpdate forObserver(Collection<UUID> observationUuids, String observer)
    • forConceptAndObserver

      public static ObservationsUpdate forConceptAndObserver(Collection<UUID> observationUuids, String concept, String observer)
    • withConcept

      public ObservationsUpdate withConcept(String concept)
    • withObserver

      public ObservationsUpdate withObserver(String observer)
    • 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.
    • observationUuids

      public Collection<UUID> observationUuids()
      Returns the value of the observationUuids record component.
      Returns:
      the value of the observationUuids record component
    • concept

      public String concept()
      Returns the value of the concept record component.
      Returns:
      the value of the concept record component
    • observer

      public String observer()
      Returns the value of the observer record component.
      Returns:
      the value of the observer record component
    • group

      public String group()
      Returns the value of the group record component.
      Returns:
      the value of the group record component
    • activity

      public String activity()
      Returns the value of the activity record component.
      Returns:
      the value of the activity record component