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

org.jetbrains.android.util.AndroidNativeLibData Maven / Gradle / Ivy

Go to download

A packaging of the IntelliJ Community Edition android-common library. This is release number 1 of trunk branch 142.

The newest version!
package org.jetbrains.android.util;

import org.jetbrains.annotations.NotNull;

/**
 * @author Eugene.Kudelevsky
 */
public class AndroidNativeLibData {
  private final String myPath;
  private final String myArchitecture;
  private final String myTargetFileName;

  public AndroidNativeLibData(@NotNull String architecture, @NotNull String path, @NotNull String targetFileName) {
    myPath = path;
    myArchitecture = architecture;
    myTargetFileName = targetFileName;
  }

  @NotNull
  public String getPath() {
    return myPath;
  }

  @NotNull
  public String getArchitecture() {
    return myArchitecture;
  }

  @NotNull
  public String getTargetFileName() {
    return myTargetFileName;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    AndroidNativeLibData lib = (AndroidNativeLibData)o;

    if (!myArchitecture.equals(lib.myArchitecture)) return false;
    if (!myTargetFileName.equals(lib.myTargetFileName)) return false;
    if (!myPath.equals(lib.myPath)) return false;

    return true;
  }

  @Override
  public String toString() {
    return "[" + myPath + "," + myArchitecture + "," + myTargetFileName + "]";
  }

  @Override
  public int hashCode() {
    int result = myPath.hashCode();
    result = 31 * result + myArchitecture.hashCode();
    result = 31 * result + myTargetFileName.hashCode();
    return result;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy