74 lines
1.6 KiB
Java
74 lines
1.6 KiB
Java
package com.ubt.jimu.controller.data.config;
|
|
|
|
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
|
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
|
|
import com.ubt.jimu.controller.data.widget.JockstickDataConverter;
|
|
|
|
@XStreamAlias(JockstickDataConverter.WHEEL)
|
|
/* loaded from: classes.dex */
|
|
public class Wheel {
|
|
|
|
@XStreamAsAttribute
|
|
private int id;
|
|
|
|
@XStreamAsAttribute
|
|
private int position;
|
|
|
|
@XStreamAsAttribute
|
|
private boolean reverse;
|
|
|
|
public Wheel() {
|
|
this.reverse = false;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof Wheel)) {
|
|
return false;
|
|
}
|
|
Wheel wheel = (Wheel) obj;
|
|
return this.id == wheel.id && this.position == wheel.position && this.reverse == wheel.reverse;
|
|
}
|
|
|
|
public int getId() {
|
|
return this.id;
|
|
}
|
|
|
|
public int getPosition() {
|
|
return this.position;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return (((this.id * 31) + this.position) * 31) + (this.reverse ? 1 : 0);
|
|
}
|
|
|
|
public boolean isReverse() {
|
|
return this.reverse;
|
|
}
|
|
|
|
public void setId(int i) {
|
|
this.id = i;
|
|
}
|
|
|
|
public void setPosition(int i) {
|
|
this.position = i;
|
|
}
|
|
|
|
public void setReverse(boolean z) {
|
|
this.reverse = z;
|
|
}
|
|
|
|
public Wheel(int i, int i2) {
|
|
this.reverse = false;
|
|
this.id = i;
|
|
this.position = i2;
|
|
}
|
|
|
|
public Wheel(int i, int i2, boolean z) {
|
|
this(i, i2);
|
|
this.reverse = z;
|
|
}
|
|
}
|