Record Class AbstractDefinitionResolver.LookupResult<N>
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.gateway.api.storage.AbstractDefinitionResolver.LookupResult<N>
- Type Parameters:
N- the node type.- Record Components:
node- the matching node, empty when none exists for the point's source.shouldCreate- whether a new node version should be created even ifnodeis present; the matched node then serves as its template.
- Enclosing class:
AbstractDefinitionResolver<N extends HistoricalNode & Comparable<? super N>>
-
Constructor Summary
ConstructorsConstructorDescriptionLookupResult(Optional<N> node, boolean shouldCreate) Creates an instance of aLookupResultrecord 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 <N> AbstractDefinitionResolver.LookupResult<N> match(N node) node()Returns the value of thenoderecord component.static <N> AbstractDefinitionResolver.LookupResult<N> none()static <N> AbstractDefinitionResolver.LookupResult<N> of(N node, boolean shouldCreate) booleanReturns the value of theshouldCreaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LookupResult
Creates an instance of aLookupResultrecord class.- Parameters:
node- the value for thenoderecord componentshouldCreate- the value for theshouldCreaterecord component
-
-
Method Details
-
of
-
match
-
none
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
node
-
shouldCreate
public boolean shouldCreate()Returns the value of theshouldCreaterecord component.- Returns:
- the value of the
shouldCreaterecord component
-