com.github.ngeor.yak4jcli.HasCoordinates Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yak4j-cli Show documentation
Show all versions of yak4j-cli Show documentation
Interactive CLI for yak4j
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());
}
}