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

com.github.bannmann.maven.probe.model.Edge Maven / Gradle / Ivy

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy