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

com.github.ngeor.yak4jcli.HasCoordinates Maven / Gradle / Ivy

package com.github.ngeor.yak4jcli;

import java.util.Objects;

/**
 * Describes an entity with Maven coordinates.
 */
public interface HasCoordinates {
    String getGroupId();

    String getArtifactId();

    default boolean matchesGroupArtifact(HasCoordinates other) {
        return other != null && Objects.equals(this.getGroupId(), other.getGroupId())
            && Objects.equals(this.getArtifactId(), other.getArtifactId());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy