org.javers.core.graph.ShallowSingleEdge 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.graph;
import org.javers.common.validation.Validate;
import org.javers.core.metamodel.object.Cdo;
import org.javers.core.metamodel.object.GlobalId;
import org.javers.core.metamodel.type.JaversProperty;
/**
* @author bartosz.walacik
*/
class ShallowSingleEdge extends AbstractSingleEdge {
private final Cdo reference;
ShallowSingleEdge(JaversProperty property, Cdo referencedObject) {
super(property);
Validate.argumentIsNotNull(referencedObject);
this.reference = referencedObject;
}
@Override
GlobalId getReference() {
return reference.getGlobalId();
}
}