Package org.javers.core.diff.changetype
Class Atomic
- java.lang.Object
-
- org.javers.core.diff.changetype.Atomic
-
- All Implemented Interfaces:
java.io.Serializable
public class Atomic extends java.lang.Object implements java.io.Serializable
Immutable wrapper for client's Primitives, Values and Id's
TODO refine dehydrate approach Value needs to be dehydrated before persisting. Dehydration is simply serialization to JSON.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Atomic(java.lang.Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
boolean
isJsonBasicType()
boolean
isNull()
java.lang.String
toString()
java.lang.Object
unwrap()
original Value
-
-
-
Method Detail
-
isNull
public boolean isNull()
-
isJsonBasicType
public boolean isJsonBasicType()
- Returns:
- true if value is not null and is primitive, box or String
-
unwrap
public java.lang.Object unwrap()
original Value
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-