Package smartrics.iotics.space.grpc
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 Summary
ConstructorsConstructorDescriptionTwinDataBag(List<Property> properties, TwinID twinID, int feedsCount, int inputsCount, GeoLocation location) Creates an instance of aTwinDataBagrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefeedsCountrecord component.static TwinDataBagfrom(DescribeTwinResponse twinDescription) static TwinDataBagfrom(SearchResponse.TwinDetails twinDetails) final inthashCode()Returns a hash code value for this object.intReturns the value of theinputsCountrecord component.location()Returns the value of thelocationrecord component.optionalModelTwinID(String hostID) Returns the value of thepropertiesrecord component.final StringtoString()Returns a string representation of this record class.twinID()Returns the value of thetwinIDrecord component.
-
Constructor Details
-
TwinDataBag
public TwinDataBag(List<Property> properties, TwinID twinID, int feedsCount, int inputsCount, GeoLocation location) Creates an instance of aTwinDataBagrecord class.- Parameters:
properties- the value for thepropertiesrecord componenttwinID- the value for thetwinIDrecord componentfeedsCount- the value for thefeedsCountrecord componentinputsCount- the value for theinputsCountrecord componentlocation- the value for thelocationrecord component
-
-
Method Details
-
from
-
from
-
optionalModelTwinID
-
optionalModelTwinID
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
twinID
Returns the value of thetwinIDrecord component.- Returns:
- the value of the
twinIDrecord component
-
feedsCount
public int feedsCount()Returns the value of thefeedsCountrecord component.- Returns:
- the value of the
feedsCountrecord component
-
inputsCount
public int inputsCount()Returns the value of theinputsCountrecord component.- Returns:
- the value of the
inputsCountrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-