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

org.robolectric.shadows.AutoValue_ShadowStatsLog_StatsLogItem Maven / Gradle / Ivy

package org.robolectric.shadows;

import java.util.Arrays;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ShadowStatsLog_StatsLogItem extends ShadowStatsLog.StatsLogItem {

  private final int atomId;

  private final int numBytes;

  private final byte[] bytes;

  AutoValue_ShadowStatsLog_StatsLogItem(
      int atomId,
      int numBytes,
      byte[] bytes) {
    this.atomId = atomId;
    this.numBytes = numBytes;
    if (bytes == null) {
      throw new NullPointerException("Null bytes");
    }
    this.bytes = bytes;
  }

  @Override
  public int atomId() {
    return atomId;
  }

  @Override
  public int numBytes() {
    return numBytes;
  }

  @SuppressWarnings("AutoValueImmutableFields")
  @Override
  public byte[] bytes() {
    return bytes;
  }

  @Override
  public String toString() {
    return "StatsLogItem{"
        + "atomId=" + atomId + ", "
        + "numBytes=" + numBytes + ", "
        + "bytes=" + Arrays.toString(bytes)
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ShadowStatsLog.StatsLogItem) {
      ShadowStatsLog.StatsLogItem that = (ShadowStatsLog.StatsLogItem) o;
      return this.atomId == that.atomId()
          && this.numBytes == that.numBytes()
          && Arrays.equals(this.bytes, (that instanceof AutoValue_ShadowStatsLog_StatsLogItem) ? ((AutoValue_ShadowStatsLog_StatsLogItem) that).bytes : that.bytes());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= atomId;
    h$ *= 1000003;
    h$ ^= numBytes;
    h$ *= 1000003;
    h$ ^= Arrays.hashCode(bytes);
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy