org.javers.core.diff.changetype.InitialValueChange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javers-core Show documentation
Show all versions of javers-core Show documentation
JaVers - object auditing and diff framework for Java
package org.javers.core.diff.changetype;
import org.javers.core.JaversBuilder;
import org.javers.core.metamodel.type.PrimitiveOrValueType;
/**
* InitialValueChange is a subtype of ValueChange with null on left and a property value on right.
* It is generated for each Primitive or Value property of a NewObject to capture its state.
*
* @see NewObject
* @see PrimitiveOrValueType
* @see JaversBuilder#withInitialChanges(boolean)
* @see JaversBuilder#withUsePrimitiveDefaults(boolean)
*/
public class InitialValueChange extends ValueChange {
public InitialValueChange(PropertyChangeMetadata metadata, Object rightValue) {
super(metadata, null, rightValue);
}
}