io.github.humbleui.skija.svg.SVGPreserveAspectRatio Maven / Gradle / Ivy
// Generated by delombok at Wed Sep 14 01:50:49 UTC 2022
package io.github.humbleui.skija.svg;
import lombok.*;
import org.jetbrains.annotations.*;
public class SVGPreserveAspectRatio {
@ApiStatus.Internal
public final SVGPreserveAspectRatioAlign _align;
@ApiStatus.Internal
public final SVGPreserveAspectRatioScale _scale;
@ApiStatus.Internal
public SVGPreserveAspectRatio(int align, int scale) {
this(SVGPreserveAspectRatioAlign.valueOf(align), SVGPreserveAspectRatioScale._values[scale]);
}
public SVGPreserveAspectRatio() {
this(SVGPreserveAspectRatioAlign.XMID_YMID, SVGPreserveAspectRatioScale.MEET);
}
public SVGPreserveAspectRatio(SVGPreserveAspectRatioAlign align) {
this(align, SVGPreserveAspectRatioScale.MEET);
}
public SVGPreserveAspectRatio(SVGPreserveAspectRatioScale scale) {
this(SVGPreserveAspectRatioAlign.XMID_YMID, scale);
}
@java.lang.SuppressWarnings("all")
public SVGPreserveAspectRatio(final SVGPreserveAspectRatioAlign align, final SVGPreserveAspectRatioScale scale) {
this._align = align;
this._scale = scale;
}
@java.lang.SuppressWarnings("all")
public SVGPreserveAspectRatioAlign getAlign() {
return this._align;
}
@java.lang.SuppressWarnings("all")
public SVGPreserveAspectRatioScale getScale() {
return this._scale;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof SVGPreserveAspectRatio)) return false;
final SVGPreserveAspectRatio other = (SVGPreserveAspectRatio) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$_align = this.getAlign();
final java.lang.Object other$_align = other.getAlign();
if (this$_align == null ? other$_align != null : !this$_align.equals(other$_align)) return false;
final java.lang.Object this$_scale = this.getScale();
final java.lang.Object other$_scale = other.getScale();
if (this$_scale == null ? other$_scale != null : !this$_scale.equals(other$_scale)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof SVGPreserveAspectRatio;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $_align = this.getAlign();
result = result * PRIME + ($_align == null ? 43 : $_align.hashCode());
final java.lang.Object $_scale = this.getScale();
result = result * PRIME + ($_scale == null ? 43 : $_scale.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "SVGPreserveAspectRatio(_align=" + this.getAlign() + ", _scale=" + this.getScale() + ")";
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public SVGPreserveAspectRatio withAlign(final SVGPreserveAspectRatioAlign _align) {
return this._align == _align ? this : new SVGPreserveAspectRatio(_align, this._scale);
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public SVGPreserveAspectRatio withScale(final SVGPreserveAspectRatioScale _scale) {
return this._scale == _scale ? this : new SVGPreserveAspectRatio(this._align, _scale);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy