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

com.github.rinde.rinsim.geom.AutoValue_LengthData Maven / Gradle / Ivy

The newest version!

package com.github.rinde.rinsim.geom;

import com.google.common.base.Optional;
import javax.annotation.Generated;

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

  private final Optional length;

  AutoValue_LengthData(
      Optional length) {
    if (length == null) {
      throw new NullPointerException("Null length");
    }
    this.length = length;
  }

  @Override
  public Optional getLength() {
    return length;
  }

  @Override
  public String toString() {
    return "LengthData{"
        + "length=" + length
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof LengthData) {
      LengthData that = (LengthData) o;
      return (this.length.equals(that.getLength()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.length.hashCode();
    return h;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy