Record Class PerspectivePageInfo
java.lang.Object
java.lang.Record
com.inductiveautomation.perspective.gateway.session.PerspectivePageInfo
-
Constructor Summary
ConstructorsConstructorDescriptionPerspectivePageInfo
(String id, long created, long lastKeepalive, long roundtrip, long connectCount, int viewCount, int componentCount, int bindingCount) Creates an instance of aPerspectivePageInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thebindingCount
record component.int
Returns the value of thecomponentCount
record component.long
Returns the value of theconnectCount
record component.long
created()
Returns the value of thecreated
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.long
Returns the value of thelastKeepalive
record component.long
Returns the value of theroundtrip
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of theviewCount
record component.
-
Constructor Details
-
PerspectivePageInfo
public PerspectivePageInfo(String id, long created, long lastKeepalive, long roundtrip, long connectCount, int viewCount, int componentCount, int bindingCount) Creates an instance of aPerspectivePageInfo
record class.- Parameters:
id
- the value for theid
record componentcreated
- the value for thecreated
record componentlastKeepalive
- the value for thelastKeepalive
record componentroundtrip
- the value for theroundtrip
record componentconnectCount
- the value for theconnectCount
record componentviewCount
- the value for theviewCount
record componentcomponentCount
- the value for thecomponentCount
record componentbindingCount
- the value for thebindingCount
record component
-
-
Method Details
-
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 '=='. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
created
public long created()Returns the value of thecreated
record component.- Returns:
- the value of the
created
record component
-
lastKeepalive
public long lastKeepalive()Returns the value of thelastKeepalive
record component.- Returns:
- the value of the
lastKeepalive
record component
-
roundtrip
public long roundtrip()Returns the value of theroundtrip
record component.- Returns:
- the value of the
roundtrip
record component
-
connectCount
public long connectCount()Returns the value of theconnectCount
record component.- Returns:
- the value of the
connectCount
record component
-
viewCount
public int viewCount()Returns the value of theviewCount
record component.- Returns:
- the value of the
viewCount
record component
-
componentCount
public int componentCount()Returns the value of thecomponentCount
record component.- Returns:
- the value of the
componentCount
record component
-
bindingCount
public int bindingCount()Returns the value of thebindingCount
record component.- Returns:
- the value of the
bindingCount
record component
-