@Test public void testEqual() { Property p1 = new Property("test", ValueType.LONG, Arrays.asList(ValueType.TIMEINTVAL), "access_count_table", "", false); Property p2 = new Property("test", ValueType.LONG, Arrays.asList(ValueType.LONG), "access_count_table", "", false); Property p3 = new Property("test", ValueType.LONG, Arrays.asList(ValueType.TIMEINTVAL), "access_count_table", "", false); Property p4 = new Property("test", ValueType.TIMEINTVAL, Arrays.asList(ValueType.TIMEINTVAL), "access_count_table", "", false); Property p5 = new Property("test", ValueType.LONG, null, "access_count_table", "", false); Assert.assertTrue(!p1.equals(p2)); Assert.assertTrue(p1.equals(p3)); Assert.assertTrue(!p1.equals(p4)); Assert.assertTrue(!p1.equals(p5)); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Property property = (Property) o; return isGlobal == property.isGlobal && Objects.equals(propertyName, property.propertyName) && retType == property.retType && Objects.equals(paramsTypes, property.paramsTypes) && Objects.equals(tableName, property.tableName) && Objects.equals(tableItemName, property.tableItemName) && Objects.equals(formatTemplate, property.formatTemplate); }
Property { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Property property = (Property) o; return isGlobal == property.isGlobal && Objects.equals(propertyName, property.propertyName) && retType == property.retType && Objects.equals(paramsTypes, property.paramsTypes) && Objects.equals(tableName, property.tableName) && Objects.equals(tableItemName, property.tableItemName) && Objects.equals(formatTemplate, property.formatTemplate); } }
Property { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Property property = (Property) o; return isGlobal == property.isGlobal && Objects.equals(propertyName, property.propertyName) && retType == property.retType && Objects.equals(paramsTypes, property.paramsTypes) && Objects.equals(tableName, property.tableName) && Objects.equals(tableItemName, property.tableItemName) && Objects.equals(formatTemplate, property.formatTemplate); } Property(String propertyName, ValueType retType, List<ValueType> paramsTypes,
       String tableName, String tableItemName, boolean isGlobal);  Property(String propertyName, ValueType retType,
      List<ValueType> paramsTypes, String tableName,
      String tableItemName, boolean isGlobal,
      String formatTemplate); }
Property { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Property property = (Property) o; return isGlobal == property.isGlobal && Objects.equals(propertyName, property.propertyName) && retType == property.retType && Objects.equals(paramsTypes, property.paramsTypes) && Objects.equals(tableName, property.tableName) && Objects.equals(tableItemName, property.tableItemName) && Objects.equals(formatTemplate, property.formatTemplate); } Property(String propertyName, ValueType retType, List<ValueType> paramsTypes,
       String tableName, String tableItemName, boolean isGlobal);  Property(String propertyName, ValueType retType,
      List<ValueType> paramsTypes, String tableName,
      String tableItemName, boolean isGlobal,
      String formatTemplate); String getPropertyName(); ValueType getValueType(); List<ValueType> getParamsTypes(); String getTableName(); String getTableItemName(); boolean isGlobal(); boolean hasParameters(); @Override boolean equals(Object o); @Override int hashCode(); String instId(List<Object> values); String formatParameters(List<Object> values); }
Property { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Property property = (Property) o; return isGlobal == property.isGlobal && Objects.equals(propertyName, property.propertyName) && retType == property.retType && Objects.equals(paramsTypes, property.paramsTypes) && Objects.equals(tableName, property.tableName) && Objects.equals(tableItemName, property.tableItemName) && Objects.equals(formatTemplate, property.formatTemplate); } Property(String propertyName, ValueType retType, List<ValueType> paramsTypes,
       String tableName, String tableItemName, boolean isGlobal);  Property(String propertyName, ValueType retType,
      List<ValueType> paramsTypes, String tableName,
      String tableItemName, boolean isGlobal,
      String formatTemplate); String getPropertyName(); ValueType getValueType(); List<ValueType> getParamsTypes(); String getTableName(); String getTableItemName(); boolean isGlobal(); boolean hasParameters(); @Override boolean equals(Object o); @Override int hashCode(); String instId(List<Object> values); String formatParameters(List<Object> values);  }