Record Class SeedResults.SeedPair<V>
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.gateway.api.query.SeedResults.SeedPair<V>
- Enclosing class:
SeedResults<V>
public static record SeedResults.SeedPair<V>(@Nullable SeedResults.SeedValue<V> preValue, @Nullable SeedResults.SeedValue<V> postValue)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSeedPair(@Nullable SeedResults.SeedValue<V> preValue, @Nullable SeedResults.SeedValue<V> postValue) Creates an instance of aSeedPairrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static <V> SeedResults.SeedPair<V> ofPost(SeedResults.SeedValue<V> postValue) static <V> SeedResults.SeedPair<V> ofPre(SeedResults.SeedValue<V> preValue) @Nullable SeedResults.SeedValue<V> Returns the value of thepostValuerecord component.@Nullable SeedResults.SeedValue<V> preValue()Returns the value of thepreValuerecord component.final StringtoString()Returns a string representation of this record class.withPostValue(SeedResults.SeedValue<V> postValue) withPreValue(SeedResults.SeedValue<V> preValue)
-
Constructor Details
-
SeedPair
public SeedPair(@Nullable SeedResults.SeedValue<V> preValue, @Nullable SeedResults.SeedValue<V> postValue) Creates an instance of aSeedPairrecord class.- Parameters:
preValue- the value for thepreValuerecord componentpostValue- the value for thepostValuerecord component
-
-
Method Details
-
ofPre
-
ofPost
-
withPreValue
-
withPostValue
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
preValue
Returns the value of thepreValuerecord component.- Returns:
- the value of the
preValuerecord component
-
postValue
Returns the value of thepostValuerecord component.- Returns:
- the value of the
postValuerecord component
-