Package com.yahoo.tensor.serialization
Record Class JsonFormat.EncodeOptions
java.lang.Object
java.lang.Record
com.yahoo.tensor.serialization.JsonFormat.EncodeOptions
- Enclosing class:
- JsonFormat
public static record JsonFormat.EncodeOptions(boolean shortForm, boolean directValues, boolean hexForDensePart)
extends Record
Options for encode
-
Constructor Summary
ConstructorsConstructorDescriptionEncodeOptions(boolean shortForm) EncodeOptions(boolean shortForm, boolean directValues) EncodeOptions(boolean shortForm, boolean directValues, boolean hexForDensePart) Creates an instance of aEncodeOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedirectValuesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehexForDensePartrecord component.booleanReturns the value of theshortFormrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EncodeOptions
public EncodeOptions() -
EncodeOptions
public EncodeOptions(boolean shortForm) -
EncodeOptions
public EncodeOptions(boolean shortForm, boolean directValues) -
EncodeOptions
public EncodeOptions(boolean shortForm, boolean directValues, boolean hexForDensePart) Creates an instance of aEncodeOptionsrecord class.- Parameters:
shortForm- the value for theshortFormrecord componentdirectValues- the value for thedirectValuesrecord componenthexForDensePart- the value for thehexForDensePartrecord 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. All components in this record class are compared with '=='. -
shortForm
public boolean shortForm()Returns the value of theshortFormrecord component.- Returns:
- the value of the
shortFormrecord component
-
directValues
public boolean directValues()Returns the value of thedirectValuesrecord component.- Returns:
- the value of the
directValuesrecord component
-
hexForDensePart
public boolean hexForDensePart()Returns the value of thehexForDensePartrecord component.- Returns:
- the value of the
hexForDensePartrecord component
-