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>.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final T value
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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