Package com.yahoo.config.model.api
Record Class OnnxModelCost.ModelInfo
java.lang.Object
java.lang.Record
com.yahoo.config.model.api.OnnxModelCost.ModelInfo
- Enclosing interface:
- OnnxModelCost
public static record OnnxModelCost.ModelInfo(String modelId, long estimatedCost, long hash, Optional<OnnxModelOptions> onnxModelOptions)
extends Record
-
Constructor Summary
ConstructorDescriptionModelInfo
(String modelId, long estimatedCost, long hash, Optional<OnnxModelOptions> onnxModelOptions) Creates an instance of aModelInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of theestimatedCost
record component.long
hash()
Returns the value of thehash
record component.final int
hashCode()
Returns a hash code value for this object.modelId()
Returns the value of themodelId
record component.Returns the value of theonnxModelOptions
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ModelInfo
public ModelInfo(String modelId, long estimatedCost, long hash, Optional<OnnxModelOptions> onnxModelOptions) Creates an instance of aModelInfo
record class.- Parameters:
modelId
- the value for themodelId
record componentestimatedCost
- the value for theestimatedCost
record componenthash
- the value for thehash
record componentonnxModelOptions
- the value for theonnxModelOptions
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 '=='. -
modelId
Returns the value of themodelId
record component.- Returns:
- the value of the
modelId
record component
-
estimatedCost
public long estimatedCost()Returns the value of theestimatedCost
record component.- Returns:
- the value of the
estimatedCost
record component
-
hash
public long hash()Returns the value of thehash
record component.- Returns:
- the value of the
hash
record component
-
onnxModelOptions
Returns the value of theonnxModelOptions
record component.- Returns:
- the value of the
onnxModelOptions
record component
-