class ArtifactModelSource extends FileSource implements ModelSource {
    private final String groupId;

    private final String artifactId;

    private final String version;

    private final int hashCode;

    @Deprecated
    public ArtifactModelSource(File file, String groupId, String artifactId, String version) {
        super(file);
        this.groupId = groupId;
        this.artifactId = artifactId;
        this.version = version;
        this.hashCode = Objects.hash(groupId, artifactId, version);
    }

    public ArtifactModelSource(Path path, String groupId, String artifactId, String version) {
        super(path);
        this.groupId = groupId;
        this.artifactId = artifactId;
        this.version = version;
        this.hashCode = Objects.hash(groupId, artifactId, version);
    }

    public String getGroupId() {
        return groupId;
    }

    public String getArtifactId() {
        return artifactId;
    }

    public String getVersion() {
        return version;
    }

    @Override
    public int hashCode() {
        return hashCode;
    }

    @Override
    public boolean equals(Object obj) {<FILL_FUNCTION_BODY>}

    @Override
    public String toString() {
        return groupId + ":" + artifactId + ":" + version;
    }
}

        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }

        if (!ArtifactModelSource.class.equals(obj.getClass())) {
            return false;
        }

        ArtifactModelSource other = (ArtifactModelSource) obj;
        return Objects.equals(artifactId, other.artifactId)
                && Objects.equals(groupId, other.groupId)
                && Objects.equals(version, other.version);
    
<methods>public void <init>(java.io.File) ,public void <init>(java.nio.file.Path) ,public boolean equals(java.lang.Object) ,public java.io.File getFile() ,public java.io.InputStream getInputStream() throws java.io.IOException,public java.lang.String getLocation() ,public java.nio.file.Path getPath() ,public int hashCode() ,public java.lang.String toString() <variables>private final non-sealed int hashCode,private final non-sealed java.nio.file.Path path