Record Class ObservationsUpdate
java.lang.Object
java.lang.Record
org.mbari.vars.annosaurus.sdk.r1.models.ObservationsUpdate
-
Constructor Summary
ConstructorsConstructorDescriptionObservationsUpdate(Collection<UUID> observationUuids, String concept, String observer, String group, String activity) Creates an instance of aObservationsUpdaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionactivity()Returns the value of theactivityrecord component.concept()Returns the value of theconceptrecord component.final booleanIndicates whether some other object is "equal to" this one.static ObservationsUpdateforActivity(Collection<UUID> observationUuids, String activity) static ObservationsUpdateforConcept(Collection<UUID> observationUuids, String concept) static ObservationsUpdateforConceptAndObserver(Collection<UUID> observationUuids, String concept, String observer) static ObservationsUpdateforGroup(Collection<UUID> observationUuids, String group) static ObservationsUpdateforObserver(Collection<UUID> observationUuids, String observer) group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theobservationUuidsrecord component.observer()Returns the value of theobserverrecord component.final StringtoString()Returns a string representation of this record class.withConcept(String concept) withObserver(String observer)
-
Constructor Details
-
ObservationsUpdate
public ObservationsUpdate(Collection<UUID> observationUuids, String concept, String observer, String group, String activity) Creates an instance of aObservationsUpdaterecord class.- Parameters:
observationUuids- the value for theobservationUuidsrecord componentconcept- the value for theconceptrecord componentobserver- the value for theobserverrecord componentgroup- the value for thegrouprecord componentactivity- the value for theactivityrecord component
-
-
Method Details
-
forActivity
-
forConcept
-
forGroup
-
forObserver
-
forConceptAndObserver
public static ObservationsUpdate forConceptAndObserver(Collection<UUID> observationUuids, String concept, String observer) -
withConcept
-
withObserver
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
observationUuids
Returns the value of theobservationUuidsrecord component.- Returns:
- the value of the
observationUuidsrecord component
-
concept
Returns the value of theconceptrecord component.- Returns:
- the value of the
conceptrecord component
-
observer
Returns the value of theobserverrecord component.- Returns:
- the value of the
observerrecord component
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
activity
Returns the value of theactivityrecord component.- Returns:
- the value of the
activityrecord component
-