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

org.flyte.jflyte.utils.AutoValue_Artifact Maven / Gradle / Ivy

Go to download

Primarily used by jflyte, but can also be used to extend or build a jflyte alternative

There is a newer version: 0.4.60
Show newest version
package org.flyte.jflyte.utils;

import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Artifact extends Artifact {

  private final String location;

  private final String name;

  private final long size;

  AutoValue_Artifact(
      String location,
      String name,
      long size) {
    if (location == null) {
      throw new NullPointerException("Null location");
    }
    this.location = location;
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    this.size = size;
  }

  @Override
  String location() {
    return location;
  }

  @Override
  String name() {
    return name;
  }

  @Override
  long size() {
    return size;
  }

  @Override
  public String toString() {
    return "Artifact{"
        + "location=" + location + ", "
        + "name=" + name + ", "
        + "size=" + size
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Artifact) {
      Artifact that = (Artifact) o;
      return this.location.equals(that.location())
          && this.name.equals(that.name())
          && this.size == that.size();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= location.hashCode();
    h$ *= 1000003;
    h$ ^= name.hashCode();
    h$ *= 1000003;
    h$ ^= (int) ((size >>> 32) ^ size);
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy