Class Atomic

java.lang.Object
org.javers.core.diff.changetype.Atomic
All Implemented Interfaces:
Serializable

public class Atomic extends Object implements Serializable
Immutable wrapper for client's Primitives, Values and Id's

Value needs to be dehydrated before persisting. Dehydration is simply serialization to JSON.
See Also:
  • Constructor Details

    • Atomic

      public Atomic(Object value)
  • Method Details

    • isNull

      public boolean isNull()
    • isJsonBasicType

      public boolean isJsonBasicType()
      Returns:
      true if value is not null and is primitive, box or String
    • unwrap

      public Object unwrap()
      original Value
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object