package com.logistics.pvis.color;

public class Color {
	public int r, g, b, a;
	
	public Color(int r, int g, int b, int a) {
		this.r = r;
		this.g = g;
		this.b = b;
		this.a = a;
	}
	
	public Color(int r, int g, int b) {
		this.r = r;
		this.g = g;
		this.b = b;
		this.a = 255;
	}
	
	public Color(int grayScale) {
		this.r = grayScale;
		this.g = grayScale;
		this.b = grayScale;
		this.a = 255;
	}
	
	public static final Color WHITE = new Color(255);
	public static final Color BLACK = new Color(0);
	
	public boolean equals(Color color) {
		if (r == color.r && g == color.g && b == color.b && a == color.a) {
			return true;
		}
		return false;
	}
}

@@ -505,148 +505,725 @@
 %0A%09%0A%09
-public boolean equals(Color color) %7B%0A%09%09if (r == color.r && g == color.g && b == color.b && a == color.a) %7B%0A%09%09%09return true;%0A%09%09%7D%0A%09%09return fals
+/* (non-Javadoc)%0A%09 * @see java.lang.Object#hashCode()%0A%09 */%0A%09@Override%0A%09public int hashCode() %7B%0A%09%09final int prime = 31;%0A%09%09int result = 1;%0A%09%09result = prime * result + a;%0A%09%09result = prime * result + b;%0A%09%09result = prime * result + g;%0A%09%09result = prime * result + r;%0A%09%09return result;%0A%09%7D%0A%0A%09/* (non-Javadoc)%0A%09 * @see java.lang.Object#equals(java.lang.Object)%0A%09 */%0A%09@Override%0A%09public boolean equals(Object obj) %7B%0A%09%09if (this == obj)%0A%09%09%09return true;%0A%09%09if (obj == null)%0A%09%09%09return false;%0A%09%09if (getClass() != obj.getClass())%0A%09%09%09return false;%0A%09%09Color other = (Color) obj;%0A%09%09if (a != other.a)%0A%09%09%09return false;%0A%09%09if (b != other.b)%0A%09%09%09return false;%0A%09%09if (g != other.g)%0A%09%09%09return false;%0A%09%09if (r != other.r)%0A%09%09%09return false;%0A%09%09return tru
 e;%0A%09

Update color equals function