Record Class AnnotationHistoricalData

java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.storeforward.deprecated.AnnotationHistoricalData
All Implemented Interfaces:
HistoricalData, Serializable

@Deprecated(since="8.3.0") public record AnnotationHistoricalData(List<Annotation> data) extends Record implements HistoricalData
Deprecated.
See Also:
  • Field Details

    • LEGACY_CLASS_PATH

      public static final org.apache.commons.lang3.tuple.Pair<String,String> LEGACY_CLASS_PATH
      Deprecated.
  • Constructor Details

    • AnnotationHistoricalData

      public AnnotationHistoricalData()
      Deprecated.
    • AnnotationHistoricalData

      public AnnotationHistoricalData(List<Annotation> data)
      Deprecated.
      Creates an instance of a AnnotationHistoricalData record class.
      Parameters:
      data - the value for the data record component
  • Method Details

    • getFlavor

      public HistoryFlavor getFlavor()
      Deprecated.
      Description copied from interface: HistoricalData
      Retrieves the flavor of the historical data.
      Specified by:
      getFlavor in interface HistoricalData
      Returns:
      the flavor of the historical data
    • getSignature

      public String getSignature()
      Deprecated.
      Description copied from interface: HistoricalData
      Retrieves the signature of the historical data.
      Specified by:
      getSignature in interface HistoricalData
      Returns:
      the signature of the historical data
    • getDataCount

      public int getDataCount()
      Deprecated.
      Description copied from interface: HistoricalData
      Retrieves the count of data entries in the historical data.
      Specified by:
      getDataCount in interface HistoricalData
      Returns:
      the count of data entries
    • getLoggerName

      @Nullable public String getLoggerName()
      Deprecated.
      Description copied from interface: HistoricalData
      Retrieves the logger name associated with the historical data, if any.
      Specified by:
      getLoggerName in interface HistoricalData
      Returns:
      the logger name, or null if none is associated
    • upgrade

      public PersistentData upgrade(String engineId)
      Deprecated.
      Description copied from interface: HistoricalData
      Attempts to upgrade the historical data to persistent data using the specified engine ID if necessary.
      Specified by:
      upgrade in interface HistoricalData
      Parameters:
      engineId - the engine ID to use for the upgrade if necessary
      Returns:
      the upgraded persistent data
    • toString

      public final String toString()
      Deprecated.
      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()
      Deprecated.
      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)
      Deprecated.
      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.
    • data

      public List<Annotation> data()
      Deprecated.
      Returns the value of the data record component.
      Returns:
      the value of the data record component