Package com.openai.core
Class KnownValue
-
- All Implemented Interfaces:
public final class KnownValue<T extends Object> extends JsonField<T>
A class representing a "known" JSON serializable value of type T, matching the type the SDK expects.
It is assignable to
JsonField<T>
.
-
-
Method Summary
Modifier and Type Method Description final T
value()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static <T extends Any> KnownValue<T>
of(T value)
Returns a KnownValue containing the given value. -
Methods inherited from class com.openai.core.JsonField
accept, asArray, asBoolean, asKnown, asNumber, asObject, asString, asStringOrThrow, asUnknown, isMissing, isNull
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-