Class Removable

java.lang.Object
com.atlan.serde.Removable

public class Removable extends Object
A class to capture a value that can be explicitly set to null, so that we can serialize it accordingly.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Type of empty value (primitives and lists are treated differently on serialization).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Removable
    Single null value that can be used for any list- or set-based removable type.
    static final Removable
    Single null value that can be used for any removable type.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieve the underlying type for this object.
    boolean
    Indicates whether we should explicitly set a null value in JSON serialization or not.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • NULL

      public static final Removable NULL
      Single null value that can be used for any removable type.
    • EMPTY_LIST

      public static final Removable EMPTY_LIST
      Single null value that can be used for any list- or set-based removable type.
  • Method Details

    • getType

      public Removable.TYPE getType()
      Retrieve the underlying type for this object.
      Returns:
      the value
    • isJsonNull

      public boolean isJsonNull()
      Indicates whether we should explicitly set a null value in JSON serialization or not.
      Returns:
      true if we should serialize the value as null
    • toString

      public String toString()
      Overrides:
      toString in class Object