Record Class AnnotationQueryKey
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.common.model.options.AnnotationQueryKey
- Record Components:
identifier- TheQualifiedPaththat uniquely identifies the annotation.
- All Implemented Interfaces:
ComplexQueryKey<QualifiedPath>,QueryKey<ComplexPointType>
public record AnnotationQueryKey(QualifiedPath identifier)
extends Record
implements ComplexQueryKey<QualifiedPath>
Represents a query key for annotation data points.
This record encapsulates a QualifiedPath identifier and implements
the ComplexQueryKey interface for querying annotation data points.
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationQueryKey(QualifiedPath identifier) Creates an instance of aAnnotationQueryKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theidentifierrecord component.Retrieves the type of the complex data point.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnnotationQueryKey
Creates an instance of aAnnotationQueryKeyrecord class.- Parameters:
identifier- the value for theidentifierrecord component
-
-
Method Details
-
pointType
Retrieves the type of the complex data point.This implementation always returns
StandardComplexPointType.ANNOTATION.- Specified by:
pointTypein interfaceQueryKey<ComplexPointType>- Returns:
- The
ComplexPointTyperepresenting the annotation type.
-
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. -
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. -
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). -
identifier
Returns the value of theidentifierrecord component.- Specified by:
identifierin interfaceComplexQueryKey<QualifiedPath>- Returns:
- the value of the
identifierrecord component
-