package com.skyline.electricity.pojo;
|
|
import java.util.*;
|
|
public class Color
|
{
|
List<Double> rgba;
|
|
public Color() {
|
this.rgba = new ArrayList<Double>();
|
}
|
|
public List<Double> getRgba() {
|
return this.rgba;
|
}
|
|
public void setRgba(final List<Double> rgba) {
|
this.rgba = rgba;
|
}
|
|
@Override
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (!(o instanceof Color)) {
|
return false;
|
}
|
final Color other = (Color)o;
|
if (!other.canEqual(this)) {
|
return false;
|
}
|
final Object this$rgba = this.getRgba();
|
final Object other$rgba = other.getRgba();
|
if (this$rgba == null) {
|
if (other$rgba == null) {
|
return true;
|
}
|
}
|
else if (this$rgba.equals(other$rgba)) {
|
return true;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof Color;
|
}
|
|
@Override
|
public int hashCode() {
|
final int PRIME = 59;
|
int result = 1;
|
final Object $rgba = this.getRgba();
|
result = result * 59 + (($rgba == null) ? 43 : $rgba.hashCode());
|
return result;
|
}
|
|
@Override
|
public String toString() {
|
return "Color(rgba=" + this.getRgba() + ")";
|
}
|
}
|