Package fr.gouv.vitam.common.json
Class Difference<T>
- java.lang.Object
-
- fr.gouv.vitam.common.json.Difference<T>
-
public class Difference<T> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Difference.DiffNode<T>
-
Field Summary
Fields Modifier and Type Field Description java.util.List<Difference.DiffNode<T>>
changes
java.lang.String
name
-
Constructor Summary
Constructors Constructor Description Difference(java.lang.String name)
Difference(java.lang.String name, java.util.List<Difference.DiffNode<T>> changes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(java.lang.String key, T oldValue, T newValue)
boolean
addAll(java.util.Collection<Difference.DiffNode<T>> diffNodes)
static Difference
empty()
boolean
equals(java.lang.Object o)
java.lang.String
getName()
boolean
hasDifference()
int
hashCode()
boolean
hasNoDifference()
-
-
-
Field Detail
-
name
public final java.lang.String name
-
changes
public final java.util.List<Difference.DiffNode<T>> changes
-
-
Constructor Detail
-
Difference
public Difference(java.lang.String name, java.util.List<Difference.DiffNode<T>> changes)
-
Difference
public Difference(java.lang.String name)
-
-
Method Detail
-
empty
public static Difference empty()
-
getName
public java.lang.String getName()
-
hasNoDifference
public boolean hasNoDifference()
-
hasDifference
public boolean hasDifference()
-
addAll
public boolean addAll(java.util.Collection<Difference.DiffNode<T>> diffNodes)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-