@Test public void testEquals() { ContextProperty prop1 = new ContextProperty("foo", Scope.MESSAGE, "bar"); ContextProperty prop2 = new ContextProperty("foo", Scope.MESSAGE, "bar"); Assert.assertTrue(prop1.equals(prop2)); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof ContextProperty)) { return false; } ContextProperty comp = (ContextProperty)obj; return _name.equals(comp.getName()) && _scope.equals(comp.getScope()) && (_value == null ? comp.getValue() == null : _value.equals(comp.getValue())); }
ContextProperty implements Property { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof ContextProperty)) { return false; } ContextProperty comp = (ContextProperty)obj; return _name.equals(comp.getName()) && _scope.equals(comp.getScope()) && (_value == null ? comp.getValue() == null : _value.equals(comp.getValue())); } }
ContextProperty implements Property { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof ContextProperty)) { return false; } ContextProperty comp = (ContextProperty)obj; return _name.equals(comp.getName()) && _scope.equals(comp.getScope()) && (_value == null ? comp.getValue() == null : _value.equals(comp.getValue())); } private  ContextProperty();   ContextProperty(String name, Scope scope, Object value); }
ContextProperty implements Property { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof ContextProperty)) { return false; } ContextProperty comp = (ContextProperty)obj; return _name.equals(comp.getName()) && _scope.equals(comp.getScope()) && (_value == null ? comp.getValue() == null : _value.equals(comp.getValue())); } private  ContextProperty();   ContextProperty(String name, Scope scope, Object value); @Override String getName(); @Override Scope getScope(); @Override Object getValue(); void setValue(Object value); @Override Set<String> getLabels(); @Override Property addLabels(String... labels); @Override Property addLabels(Set<String> labels); @Override Property removeLabels(String... labels); @Override boolean hasLabel(String label); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
ContextProperty implements Property { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof ContextProperty)) { return false; } ContextProperty comp = (ContextProperty)obj; return _name.equals(comp.getName()) && _scope.equals(comp.getScope()) && (_value == null ? comp.getValue() == null : _value.equals(comp.getValue())); } private  ContextProperty();   ContextProperty(String name, Scope scope, Object value); @Override String getName(); @Override Scope getScope(); @Override Object getValue(); void setValue(Object value); @Override Set<String> getLabels(); @Override Property addLabels(String... labels); @Override Property addLabels(Set<String> labels); @Override Property removeLabels(String... labels); @Override boolean hasLabel(String label); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }