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

edu.stanford.protege.webprotege.criteria.AutoValue_StringEndsWithCriteria Maven / Gradle / Ivy

There is a newer version: 0.9.2
Show newest version
package edu.stanford.protege.webprotege.criteria;

import javax.annotation.processing.Generated;

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

  private final String value;

  private final boolean ignoreCase;

  AutoValue_StringEndsWithCriteria(
      String value,
      boolean ignoreCase) {
    if (value == null) {
      throw new NullPointerException("Null value");
    }
    this.value = value;
    this.ignoreCase = ignoreCase;
  }

  @Override
  public String getValue() {
    return value;
  }

  @Override
  public boolean isIgnoreCase() {
    return ignoreCase;
  }

  @Override
  public String toString() {
    return "StringEndsWithCriteria{"
        + "value=" + value + ", "
        + "ignoreCase=" + ignoreCase
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof StringEndsWithCriteria) {
      StringEndsWithCriteria that = (StringEndsWithCriteria) o;
      return this.value.equals(that.getValue())
          && this.ignoreCase == that.isIgnoreCase();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= value.hashCode();
    h$ *= 1000003;
    h$ ^= ignoreCase ? 1231 : 1237;
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy