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.GlobalId;
import org.javers.core.metamodel.type.JaversProperty;
import java.util.Collections;
import java.util.List;
/**
* @author bartosz.walacik
*/
class ShallowSingleEdge extends AbstractSingleEdge {
private final GlobalId reference;
ShallowSingleEdge(JaversProperty property, GlobalId referenced) {
super(property);
Validate.argumentIsNotNull(referenced);
this.reference = referenced;
}
@Override
GlobalId getReference() {
return reference;
}
@Override
List getReferences() {
return Collections.emptyList();
}
}