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

org.robolectric.internal.dependency.DependencyJar Maven / Gradle / Ivy

There is a newer version: 4.13
Show newest version
package org.robolectric.internal.dependency;

public class DependencyJar {
  private final String groupId;
  private final String artifactId;
  private final String version;
  private final String classifier;

  public DependencyJar(String groupId, String artifactId, String version) {
    this(groupId, artifactId, version, null);
  }

  public DependencyJar(String groupId, String artifactId, String version, String classifier) {
    this.groupId = groupId;
    this.artifactId = artifactId;
    this.version = version;
    this.classifier = classifier;
  }

  public String getGroupId() {
    return groupId;
  }

  public String getArtifactId() {
    return artifactId;
  }

  public String getVersion() {
    return version;
  }

  public String getType() {
    return "jar";
  }

  public String getClassifier() {
    return classifier;
  }

  public String getShortName() {
    return getGroupId() + ":" + getArtifactId() + ":" + getVersion()
        + ((getClassifier() == null) ? "" : ":" + getClassifier());
  }

  @Override
  public String toString() {
    return "DependencyJar{" + getShortName() + '}';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy