Record Class ObservationsUpdate
java.lang.Object
java.lang.Record
org.mbari.vars.annosaurus.sdk.r1.models.ObservationsUpdate
-
Constructor Summary
ConstructorDescriptionObservationsUpdate
(Collection<UUID> observationUuids, String concept, String observer, String group, String activity) Creates an instance of aObservationsUpdate
record class. -
Method Summary
Modifier and TypeMethodDescriptionactivity()
Returns the value of theactivity
record component.concept()
Returns the value of theconcept
record component.final boolean
Indicates whether some other object is "equal to" this one.static ObservationsUpdate
forActivity
(Collection<UUID> observationUuids, String activity) static ObservationsUpdate
forConcept
(Collection<UUID> observationUuids, String concept) static ObservationsUpdate
forConceptAndObserver
(Collection<UUID> observationUuids, String concept, String observer) static ObservationsUpdate
forGroup
(Collection<UUID> observationUuids, String group) static ObservationsUpdate
forObserver
(Collection<UUID> observationUuids, String observer) group()
Returns the value of thegroup
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theobservationUuids
record component.observer()
Returns the value of theobserver
record component.final String
toString()
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 aObservationsUpdate
record class.- Parameters:
observationUuids
- the value for theobservationUuids
record componentconcept
- the value for theconcept
record componentobserver
- the value for theobserver
record componentgroup
- the value for thegroup
record componentactivity
- the value for theactivity
record 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 theobservationUuids
record component.- Returns:
- the value of the
observationUuids
record component
-
concept
Returns the value of theconcept
record component.- Returns:
- the value of the
concept
record component
-
observer
Returns the value of theobserver
record component.- Returns:
- the value of the
observer
record component
-
group
Returns the value of thegroup
record component.- Returns:
- the value of the
group
record component
-
activity
Returns the value of theactivity
record component.- Returns:
- the value of the
activity
record component
-