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, OnnxModelOptions onnxModelOptions)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionModelInfo(String modelId, long estimatedCost, long hash, OnnxModelOptions onnxModelOptions) Creates an instance of aModelInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theestimatedCostrecord component.longhash()Returns the value of thehashrecord component.final inthashCode()Returns a hash code value for this object.modelId()Returns the value of themodelIdrecord component.Returns the value of theonnxModelOptionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelInfo
Creates an instance of aModelInforecord class.- Parameters:
modelId- the value for themodelIdrecord componentestimatedCost- the value for theestimatedCostrecord componenthash- the value for thehashrecord componentonnxModelOptions- the value for theonnxModelOptionsrecord 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 themodelIdrecord component.- Returns:
- the value of the
modelIdrecord component
-
estimatedCost
public long estimatedCost()Returns the value of theestimatedCostrecord component.- Returns:
- the value of the
estimatedCostrecord component
-
hash
public long hash()Returns the value of thehashrecord component.- Returns:
- the value of the
hashrecord component
-
onnxModelOptions
Returns the value of theonnxModelOptionsrecord component.- Returns:
- the value of the
onnxModelOptionsrecord component
-