io.github.humbleui.skija.paragraph.PositionWithAffinity Maven / Gradle / Ivy
// Generated by delombok at Wed Sep 14 01:50:49 UTC 2022
package io.github.humbleui.skija.paragraph;
public class PositionWithAffinity {
public final int _position;
public final Affinity _affinity;
@java.lang.SuppressWarnings("all")
public PositionWithAffinity(final int position, final Affinity affinity) {
this._position = position;
this._affinity = affinity;
}
@java.lang.SuppressWarnings("all")
public int getPosition() {
return this._position;
}
@java.lang.SuppressWarnings("all")
public Affinity getAffinity() {
return this._affinity;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof PositionWithAffinity)) return false;
final PositionWithAffinity other = (PositionWithAffinity) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (this.getPosition() != other.getPosition()) return false;
final java.lang.Object this$_affinity = this.getAffinity();
final java.lang.Object other$_affinity = other.getAffinity();
if (this$_affinity == null ? other$_affinity != null : !this$_affinity.equals(other$_affinity)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof PositionWithAffinity;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
result = result * PRIME + this.getPosition();
final java.lang.Object $_affinity = this.getAffinity();
result = result * PRIME + ($_affinity == null ? 43 : $_affinity.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "PositionWithAffinity(_position=" + this.getPosition() + ", _affinity=" + this.getAffinity() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy