Package com.yahoo.search.schema
Record Class RankProfile.InputType
java.lang.Object
java.lang.Record
com.yahoo.search.schema.RankProfile.InputType
- Enclosing class:
- RankProfile
public static record RankProfile.InputType(com.yahoo.tensor.TensorType tensorType, boolean declaredString)
extends Record
-
Constructor Summary
ConstructorDescriptionInputType
(com.yahoo.tensor.TensorType tensorType, boolean declaredString) Creates an instance of aInputType
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of thedeclaredString
record component.final boolean
Indicates whether some other object is "equal to" this one.static RankProfile.InputType
final int
hashCode()
Returns a hash code value for this object.com.yahoo.tensor.TensorType
Returns the value of thetensorType
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
InputType
public InputType(com.yahoo.tensor.TensorType tensorType, boolean declaredString) Creates an instance of aInputType
record class.- Parameters:
tensorType
- the value for thetensorType
record componentdeclaredString
- the value for thedeclaredString
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. -
fromSpec
-
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 '=='. -
tensorType
public com.yahoo.tensor.TensorType tensorType()Returns the value of thetensorType
record component.- Returns:
- the value of the
tensorType
record component
-
declaredString
public boolean declaredString()Returns the value of thedeclaredString
record component.- Returns:
- the value of the
declaredString
record component
-