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

com.google.common.truth.AutoValue_ActualValueInference_FrameInfo Maven / Gradle / Ivy

The newest version!
package com.google.common.truth;

import com.google.common.annotations.GwtIncompatible;
import com.google.common.collect.ImmutableList;

@GwtIncompatible
@J2ktIncompatible
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_ActualValueInference_FrameInfo extends ActualValueInference.FrameInfo {

  private final ImmutableList locals;

  private final ImmutableList stack;

  AutoValue_ActualValueInference_FrameInfo(
      ImmutableList locals,
      ImmutableList stack) {
    if (locals == null) {
      throw new NullPointerException("Null locals");
    }
    this.locals = locals;
    if (stack == null) {
      throw new NullPointerException("Null stack");
    }
    this.stack = stack;
  }

  @Override
  ImmutableList locals() {
    return locals;
  }

  @Override
  ImmutableList stack() {
    return stack;
  }

  @Override
  public String toString() {
    return "FrameInfo{"
        + "locals=" + locals + ", "
        + "stack=" + stack
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ActualValueInference.FrameInfo) {
      ActualValueInference.FrameInfo that = (ActualValueInference.FrameInfo) o;
      return this.locals.equals(that.locals())
          && this.stack.equals(that.stack());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= locals.hashCode();
    h$ *= 1000003;
    h$ ^= stack.hashCode();
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy