Record Class TwinDataBag

java.lang.Object
java.lang.Record
smartrics.iotics.space.grpc.TwinDataBag

public record TwinDataBag(List<Property> properties, TwinID twinID, int feedsCount, int inputsCount, GeoLocation location) extends Record
  • Constructor Details

    • TwinDataBag

      public TwinDataBag(List<Property> properties, TwinID twinID, int feedsCount, int inputsCount, GeoLocation location)
      Creates an instance of a TwinDataBag record class.
      Parameters:
      properties - the value for the properties record component
      twinID - the value for the twinID record component
      feedsCount - the value for the feedsCount record component
      inputsCount - the value for the inputsCount record component
      location - the value for the location record component
  • Method Details

    • from

      public static TwinDataBag from(SearchResponse.TwinDetails twinDetails)
    • from

      public static TwinDataBag from(DescribeTwinResponse twinDescription)
    • optionalModelTwinID

      public Optional<TwinID> optionalModelTwinID()
    • optionalModelTwinID

      public Optional<TwinID> optionalModelTwinID(String hostID)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • properties

      public List<Property> properties()
      Returns the value of the properties record component.
      Returns:
      the value of the properties record component
    • twinID

      public TwinID twinID()
      Returns the value of the twinID record component.
      Returns:
      the value of the twinID record component
    • feedsCount

      public int feedsCount()
      Returns the value of the feedsCount record component.
      Returns:
      the value of the feedsCount record component
    • inputsCount

      public int inputsCount()
      Returns the value of the inputsCount record component.
      Returns:
      the value of the inputsCount record component
    • location

      public GeoLocation location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component