All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.javers.core.graph.Edge Maven / Gradle / Ivy

There is a newer version: 7.6.1
Show newest version
package org.javers.core.graph;

import org.javers.common.validation.Validate;
import org.javers.core.metamodel.type.JaversProperty;

/**
 * Relation between (Entity) instances
 * 
* Immutable * * @author bartosz walacik */ abstract class Edge { private final JaversProperty property; Edge(JaversProperty property) { Validate.argumentIsNotNull(property); this.property = property; } public JaversProperty getProperty() { return property; } @Override public boolean equals(Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } Edge that = (Edge) obj; return property.equals(that.property); } @Override public int hashCode() { return property.hashCode(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy