@Test public void testEquals() { AnnotationStyle a = new AnnotationStyle("testType", AnnotationStyle.Style.BRACKET, new Color( 255, 255, 0), 0); AnnotationStyle b = new AnnotationStyle("testType", AnnotationStyle.Style.BRACKET, new Color( 255, 255, 0), 0); assertEquals(a, b); }
@Override public boolean equals(Object object) { boolean isEqual; if (object == this) { isEqual = true; } else if (object instanceof AnnotationStyle) { AnnotationStyle style = (AnnotationStyle) object; boolean isConfigEqual = Objects.equals(configuration, style.configuration); isEqual = annotation.equals(style.annotation) && this.style.equals(style.style) && color.equals(style.color) && layer == style.layer && isConfigEqual; } else { isEqual = false; } return isEqual; }
AnnotationStyle { @Override public boolean equals(Object object) { boolean isEqual; if (object == this) { isEqual = true; } else if (object instanceof AnnotationStyle) { AnnotationStyle style = (AnnotationStyle) object; boolean isConfigEqual = Objects.equals(configuration, style.configuration); isEqual = annotation.equals(style.annotation) && this.style.equals(style.style) && color.equals(style.color) && layer == style.layer && isConfigEqual; } else { isEqual = false; } return isEqual; } }
AnnotationStyle { @Override public boolean equals(Object object) { boolean isEqual; if (object == this) { isEqual = true; } else if (object instanceof AnnotationStyle) { AnnotationStyle style = (AnnotationStyle) object; boolean isConfigEqual = Objects.equals(configuration, style.configuration); isEqual = annotation.equals(style.annotation) && this.style.equals(style.style) && color.equals(style.color) && layer == style.layer && isConfigEqual; } else { isEqual = false; } return isEqual; } AnnotationStyle(String annotation, Style style, Color color, int layer, String configuration);  AnnotationStyle(String annotation, Style style, Color color, int layer); }
AnnotationStyle { @Override public boolean equals(Object object) { boolean isEqual; if (object == this) { isEqual = true; } else if (object instanceof AnnotationStyle) { AnnotationStyle style = (AnnotationStyle) object; boolean isConfigEqual = Objects.equals(configuration, style.configuration); isEqual = annotation.equals(style.annotation) && this.style.equals(style.style) && color.equals(style.color) && layer == style.layer && isConfigEqual; } else { isEqual = false; } return isEqual; } AnnotationStyle(String annotation, Style style, Color color, int layer, String configuration);  AnnotationStyle(String annotation, Style style, Color color, int layer); String getAnnotation(); Style getStyle(); Color getColor(); int getLayer(); String getConfiguration(); @Override boolean equals(Object object); @Override int hashCode(); @Override String toString(); static void putAnnotatationStyleToStore(IPreferenceStore store, AnnotationStyle style); static AnnotationStyle getAnnotationStyleFromStore(IPreferenceStore store, String typeName); }
AnnotationStyle { @Override public boolean equals(Object object) { boolean isEqual; if (object == this) { isEqual = true; } else if (object instanceof AnnotationStyle) { AnnotationStyle style = (AnnotationStyle) object; boolean isConfigEqual = Objects.equals(configuration, style.configuration); isEqual = annotation.equals(style.annotation) && this.style.equals(style.style) && color.equals(style.color) && layer == style.layer && isConfigEqual; } else { isEqual = false; } return isEqual; } AnnotationStyle(String annotation, Style style, Color color, int layer, String configuration);  AnnotationStyle(String annotation, Style style, Color color, int layer); String getAnnotation(); Style getStyle(); Color getColor(); int getLayer(); String getConfiguration(); @Override boolean equals(Object object); @Override int hashCode(); @Override String toString(); static void putAnnotatationStyleToStore(IPreferenceStore store, AnnotationStyle style); static AnnotationStyle getAnnotationStyleFromStore(IPreferenceStore store, String typeName); static final Style DEFAULT_STYLE; static final Color DEFAULT_COLOR; static final int DEFAULT_LAYER; }