com.github.bannmann.maven.probe.model.Edge Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of probe-maven-plugin Show documentation
Show all versions of probe-maven-plugin Show documentation
Plugin which helps inspecting the dependency tree of maven projects
The newest version!
package com.github.bannmann.maven.probe.model;
import java.util.Objects;
import java.util.Optional;
public interface Edge
{
enum Type
{
ACTIVE, MANAGED, MEDIATED, ORIGINAL
}
Optional getActive();
Optional getScope();
Optional getOptional();
Optional getVersion();
Type getType();
default boolean matches(Edge other)
{
return Objects.equals(getScope(), other.getScope()) &&
Objects.equals(getOptional(), other.getOptional()) &&
Objects.equals(getVersion(), other.getVersion());
}
default boolean differs(Edge other)
{
return !matches(other);
}
}