Class DeviceTelemetry

All Implemented Interfaces:
Serializable

@Entity public class DeviceTelemetry extends BaseEntity<Long>
The DeviceTelemetry represents the telemetry data recorded by a device at a specific time.

The DeviceTelemetry fields are defined as follows:

See Also:
  • Constructor Details

  • Method Details

    • getAccount

      public TrackerAccount getAccount()
    • setAccount

      public void setAccount(TrackerAccount account)
    • getDevice

      public String getDevice()
    • setDevice

      public void setDevice(String device)
    • getTime

      public Instant getTime()
    • setTime

      public void setTime(Instant time)
    • getLatitude

      public Double getLatitude()
    • setLatitude

      public void setLatitude(Double latitude)
    • getLongitude

      public Double getLongitude()
    • setLongitude

      public void setLongitude(Double longitude)
    • isActive

      public boolean isActive()
    • setActive

      public void setActive(boolean active)
    • equals

      public boolean equals(Object o)
      Description copied from class: BaseEntity
      Equality is based on the entity's identifier. Two entities are considered equal if they are of the same class and have the same non-null identifier.

      If the ID is null, we treat it as a transient (new) object. Transient objects are only equal if they are the exact same instance.

      Overrides:
      equals in class BaseEntity<Long>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BaseEntity<Long>
    • toString

      public String toString()
      Overrides:
      toString in class Object