Skip to content

Instantly share code, notes, and snippets.

@onlyshk
Created October 31, 2011 15:36
Show Gist options
  • Save onlyshk/1327774 to your computer and use it in GitHub Desktop.
Save onlyshk/1327774 to your computer and use it in GitHub Desktop.
Simple test
public class Main {
/**
* Test Eq<T> interface
*/
public static void main(String[] args) {
Color color1 = new Color(ColorType.Red);
Color color2 = new Color(ColorType.Green);
System.out.println("Red == Green -> " + color1.eq(color1, color2));
Color color3 = new Color(ColorType.Green);
Color color4 = new Color(ColorType.Green);
System.out.println("Green == Green -> " + color3.eq(color3, color4));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment