Class Nullable

  • All Implemented Interfaces:
    JsonValue

    public final class Nullable
    extends java.lang.Object
    implements JsonValue
    A JsonValue value which can be null.
    • Constructor Summary

      Constructors 
      Constructor Description
      Nullable​(java.lang.Boolean bool)  
      Nullable​(java.lang.CharSequence string)  
      Nullable​(java.lang.Number number)  
      Nullable​(JsonValue jsonValue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void serialize​(JsonSink jsonSink)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Nullable

        public Nullable​(java.lang.CharSequence string)
      • Nullable

        public Nullable​(java.lang.Number number)
      • Nullable

        public Nullable​(java.lang.Boolean bool)
      • Nullable

        public Nullable​(JsonValue jsonValue)
    • Method Detail

      • serialize

        public void serialize​(JsonSink jsonSink)
                       throws java.io.IOException
        Specified by:
        serialize in interface JsonValue
        Throws:
        java.io.IOException