package com.skyline.electricity.pojo;
|
|
import java.util.*;
|
|
public class Position
|
{
|
private String interpolationAlgorithm;
|
private String interpolationDegree;
|
private String epoch;
|
private List<Double> cartographicDegrees;
|
|
public Position() {
|
this.cartographicDegrees = new ArrayList<Double>();
|
}
|
|
public String getInterpolationAlgorithm() {
|
return this.interpolationAlgorithm;
|
}
|
|
public String getInterpolationDegree() {
|
return this.interpolationDegree;
|
}
|
|
public String getEpoch() {
|
return this.epoch;
|
}
|
|
public List<Double> getCartographicDegrees() {
|
return this.cartographicDegrees;
|
}
|
|
public void setInterpolationAlgorithm(final String interpolationAlgorithm) {
|
this.interpolationAlgorithm = interpolationAlgorithm;
|
}
|
|
public void setInterpolationDegree(final String interpolationDegree) {
|
this.interpolationDegree = interpolationDegree;
|
}
|
|
public void setEpoch(final String epoch) {
|
this.epoch = epoch;
|
}
|
|
public void setCartographicDegrees(final List<Double> cartographicDegrees) {
|
this.cartographicDegrees = cartographicDegrees;
|
}
|
|
@Override
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (!(o instanceof Position)) {
|
return false;
|
}
|
final Position other = (Position)o;
|
if (!other.canEqual(this)) {
|
return false;
|
}
|
final Object this$interpolationAlgorithm = this.getInterpolationAlgorithm();
|
final Object other$interpolationAlgorithm = other.getInterpolationAlgorithm();
|
Label_0065: {
|
if (this$interpolationAlgorithm == null) {
|
if (other$interpolationAlgorithm == null) {
|
break Label_0065;
|
}
|
}
|
else if (this$interpolationAlgorithm.equals(other$interpolationAlgorithm)) {
|
break Label_0065;
|
}
|
return false;
|
}
|
final Object this$interpolationDegree = this.getInterpolationDegree();
|
final Object other$interpolationDegree = other.getInterpolationDegree();
|
Label_0102: {
|
if (this$interpolationDegree == null) {
|
if (other$interpolationDegree == null) {
|
break Label_0102;
|
}
|
}
|
else if (this$interpolationDegree.equals(other$interpolationDegree)) {
|
break Label_0102;
|
}
|
return false;
|
}
|
final Object this$epoch = this.getEpoch();
|
final Object other$epoch = other.getEpoch();
|
Label_0139: {
|
if (this$epoch == null) {
|
if (other$epoch == null) {
|
break Label_0139;
|
}
|
}
|
else if (this$epoch.equals(other$epoch)) {
|
break Label_0139;
|
}
|
return false;
|
}
|
final Object this$cartographicDegrees = this.getCartographicDegrees();
|
final Object other$cartographicDegrees = other.getCartographicDegrees();
|
if (this$cartographicDegrees == null) {
|
if (other$cartographicDegrees == null) {
|
return true;
|
}
|
}
|
else if (this$cartographicDegrees.equals(other$cartographicDegrees)) {
|
return true;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof Position;
|
}
|
|
@Override
|
public int hashCode() {
|
final int PRIME = 59;
|
int result = 1;
|
final Object $interpolationAlgorithm = this.getInterpolationAlgorithm();
|
result = result * 59 + (($interpolationAlgorithm == null) ? 43 : $interpolationAlgorithm.hashCode());
|
final Object $interpolationDegree = this.getInterpolationDegree();
|
result = result * 59 + (($interpolationDegree == null) ? 43 : $interpolationDegree.hashCode());
|
final Object $epoch = this.getEpoch();
|
result = result * 59 + (($epoch == null) ? 43 : $epoch.hashCode());
|
final Object $cartographicDegrees = this.getCartographicDegrees();
|
result = result * 59 + (($cartographicDegrees == null) ? 43 : $cartographicDegrees.hashCode());
|
return result;
|
}
|
|
@Override
|
public String toString() {
|
return "Position(interpolationAlgorithm=" + this.getInterpolationAlgorithm() + ", interpolationDegree=" + this.getInterpolationDegree() + ", epoch=" + this.getEpoch() + ", cartographicDegrees=" + this.getCartographicDegrees() + ")";
|
}
|
}
|