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

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

package org.robolectric.shadows;

import java.awt.image.BufferedImage;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ImageUtil_RobolectricBufferedImage extends ImageUtil.RobolectricBufferedImage {

  private final BufferedImage bufferedImage;

  private final String mimeType;

  AutoValue_ImageUtil_RobolectricBufferedImage(
      BufferedImage bufferedImage,
      String mimeType) {
    if (bufferedImage == null) {
      throw new NullPointerException("Null bufferedImage");
    }
    this.bufferedImage = bufferedImage;
    if (mimeType == null) {
      throw new NullPointerException("Null mimeType");
    }
    this.mimeType = mimeType;
  }

  @Override
  BufferedImage getBufferedImage() {
    return bufferedImage;
  }

  @Override
  String getMimeType() {
    return mimeType;
  }

  @Override
  public String toString() {
    return "RobolectricBufferedImage{"
        + "bufferedImage=" + bufferedImage + ", "
        + "mimeType=" + mimeType
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ImageUtil.RobolectricBufferedImage) {
      ImageUtil.RobolectricBufferedImage that = (ImageUtil.RobolectricBufferedImage) o;
      return this.bufferedImage.equals(that.getBufferedImage())
          && this.mimeType.equals(that.getMimeType());
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy