| Package | Description |
|---|---|
| org.javers.core | |
| org.javers.core.diff |
| Modifier and Type | Method and Description |
|---|---|
Diff |
Javers.compare(Object oldVersion,
Object currentVersion)
Easiest way to calculate diff, just provide two versions of the same object graph.
|
Diff |
Javers.compare(String author,
Object oldVersion,
Object currentVersion)
Deprecated.
|
Diff |
Javers.initial(Object newDomainObject)
Initial diff is a kind of snapshot of given domain objects graph.
|
Diff |
Javers.initial(String author,
Object newDomainObject)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
Javers.toJson(Diff diff)
Use it alongside with
Javers.compare(Object, Object) |
| Modifier and Type | Method and Description |
|---|---|
Diff |
DiffBuilder.build() |
Diff |
DiffFactory.compare(Object oldVersion,
Object currentVersion) |
Diff |
DiffFactory.create(ObjectGraph leftGraph,
ObjectGraph rightGraph,
Optional<CommitMetadata> commitMetadata) |
Diff |
DiffFactory.createInitial(ObjectGraph currentGraph) |
static Diff |
DiffBuilder.empty() |
Diff |
DiffFactory.initial(Object newDomainObject) |
Copyright © 2014. All rights reserved.