Package dev.turboism.sdk.cubism.history
Record Class HistoryGroup
java.lang.Object
java.lang.Record
dev.turboism.sdk.cubism.history.HistoryGroup
public record HistoryGroup(Optional<String> groupId, int observedChildCount, List<HistoryEntryDetail> children, boolean truncated)
extends Record
Bounded recursive projection of one grouped native or Turboism history operation.
-
Constructor Summary
ConstructorsConstructorDescriptionHistoryGroup(Optional<String> groupId, int observedChildCount, List<HistoryEntryDetail> children, boolean truncated) Creates an instance of aHistoryGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionchildren()Returns the value of thechildrenrecord component.final booleanIndicates whether some other object is "equal to" this one.groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theobservedChildCountrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetruncatedrecord component.
-
Constructor Details
-
HistoryGroup
public HistoryGroup(Optional<String> groupId, int observedChildCount, List<HistoryEntryDetail> children, boolean truncated) Creates an instance of aHistoryGrouprecord class.- Parameters:
groupId- the value for thegroupIdrecord componentobservedChildCount- the value for theobservedChildCountrecord componentchildren- the value for thechildrenrecord componenttruncated- the value for thetruncatedrecord 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 '=='. -
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
observedChildCount
public int observedChildCount()Returns the value of theobservedChildCountrecord component.- Returns:
- the value of the
observedChildCountrecord component
-
children
Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-
truncated
public boolean truncated()Returns the value of thetruncatedrecord component.- Returns:
- the value of the
truncatedrecord component
-