@Override public boolean equals(Object o) { if (!super.equals(o)) return false; BaseGeoShapeFieldType that = (BaseGeoShapeFieldType) o; return orientation == that.orientation; }
@Override public boolean equals(Object o) { if (!super.equals(o)) return false; RangeFieldType that = (RangeFieldType) o; return Objects.equals(rangeType, that.rangeType) && (rangeType == RangeType.DATE) ? Objects.equals(dateTimeFormatter.pattern(), that.dateTimeFormatter.pattern()) && Objects.equals(dateTimeFormatter.locale(), that.dateTimeFormatter.locale()) : dateTimeFormatter == null && that.dateTimeFormatter == null; }
@Override public boolean equals(Object o) { if (!super.equals(o)) return false; DateFieldType that = (DateFieldType) o; return Objects.equals(dateTimeFormatter.pattern(), that.dateTimeFormatter.pattern()) && Objects.equals(dateTimeFormatter.locale(), that.dateTimeFormatter.locale()); }
@Override public boolean equals(Object o) { if (super.equals(o) == false) { return false; } return scalingFactor == ((ScaledFloatFieldType) o).scalingFactor; }
@Override public boolean equals(Object o) { if (!super.equals(o)) return false; FieldNamesFieldType that = (FieldNamesFieldType) o; return enabled == that.enabled; }
@Override public boolean equals(Object o) { if (!super.equals(o)) return false; BinaryFieldType that = (BinaryFieldType) o; return Objects.equals(tryUncompressing, that.tryUncompressing); }
@Override public boolean equals(Object o) { if (!super.equals(o)) return false; GeoPointFieldType that = (GeoPointFieldType) o; return geoHashPrecision == that.geoHashPrecision && geoHashPrefixEnabled == that.geoHashPrefixEnabled && java.util.Objects.equals(geoHashFieldType, that.geoHashFieldType) && java.util.Objects.equals(latFieldType, that.latFieldType) && java.util.Objects.equals(lonFieldType, that.lonFieldType); }
@Override public boolean equals(Object o) { if (!super.equals(o)) return false; GeoShapeFieldType that = (GeoShapeFieldType) o; return treeLevels == that.treeLevels && precisionInMeters == that.precisionInMeters && defaultDistanceErrorPct == that.defaultDistanceErrorPct && Objects.equals(tree, that.tree) && Objects.equals(strategyName, that.strategyName) && pointsOnly == that.pointsOnly && Objects.equals(distanceErrorPct, that.distanceErrorPct) && orientation == that.orientation; }
@Override public boolean equals(Object o) { if (!super.equals(o)) return false; GeoShapeFieldType that = (GeoShapeFieldType) o; return treeLevels == that.treeLevels && precisionInMeters == that.precisionInMeters && defaultDistanceErrorPct == that.defaultDistanceErrorPct && Objects.equals(tree, that.tree) && Objects.equals(strategyName, that.strategyName) && pointsOnly == that.pointsOnly && Objects.equals(distanceErrorPct, that.distanceErrorPct) && orientation == that.orientation; }
@Override public boolean equals(Object o) { if (!super.equals(o)) return false; GeoShapeFieldType that = (GeoShapeFieldType) o; return treeLevels == that.treeLevels && precisionInMeters == that.precisionInMeters && defaultDistanceErrorPct == that.defaultDistanceErrorPct && Objects.equals(tree, that.tree) && Objects.equals(strategyName, that.strategyName) && pointsOnly == that.pointsOnly && Objects.equals(distanceErrorPct, that.distanceErrorPct) && orientation == that.orientation; }
@Override public boolean equals(Object o) { if (!super.equals(o)) return false; RangeFieldType that = (RangeFieldType) o; return Objects.equals(rangeType, that.rangeType) && (rangeType == RangeType.DATE) ? Objects.equals(dateTimeFormatter.format(), that.dateTimeFormatter.format()) && Objects.equals(dateTimeFormatter.locale(), that.dateTimeFormatter.locale()) : dateTimeFormatter == null && that.dateTimeFormatter == null; }
@Override public boolean equals(Object o) { if (!super.equals(o)) return false; RangeFieldType that = (RangeFieldType) o; return Objects.equals(rangeType, that.rangeType) && (rangeType == RangeType.DATE) ? Objects.equals(dateTimeFormatter.format(), that.dateTimeFormatter.format()) && Objects.equals(dateTimeFormatter.locale(), that.dateTimeFormatter.locale()) : dateTimeFormatter == null && that.dateTimeFormatter == null; }
@Override public boolean equals(Object o) { if (!super.equals(o)) return false; RangeFieldType that = (RangeFieldType) o; return Objects.equals(rangeType, that.rangeType) && (rangeType == RangeType.DATE) ? Objects.equals(dateTimeFormatter.format(), that.dateTimeFormatter.format()) && Objects.equals(dateTimeFormatter.locale(), that.dateTimeFormatter.locale()) : dateTimeFormatter == null && that.dateTimeFormatter == null; }
@Override public boolean equals(Object o) { if (!super.equals(o)) return false; RangeFieldType that = (RangeFieldType) o; return Objects.equals(rangeType, that.rangeType) && (rangeType == RangeType.DATE) ? Objects.equals(dateTimeFormatter.format(), that.dateTimeFormatter.format()) && Objects.equals(dateTimeFormatter.locale(), that.dateTimeFormatter.locale()) : dateTimeFormatter == null && that.dateTimeFormatter == null; }
@Override public boolean equals(Object o) { if (!super.equals(o)) return false; DateFieldType that = (DateFieldType) o; return Objects.equals(dateTimeFormatter.format(), that.dateTimeFormatter.format()) && Objects.equals(dateTimeFormatter.locale(), that.dateTimeFormatter.locale()); }
@Override public boolean equals(Object o) { if (!super.equals(o)) return false; DateFieldType that = (DateFieldType) o; return Objects.equals(dateTimeFormatter.format(), that.dateTimeFormatter.format()) && Objects.equals(dateTimeFormatter.locale(), that.dateTimeFormatter.locale()); }
@Override public boolean equals(Object o) { if (!super.equals(o)) return false; DateFieldType that = (DateFieldType) o; return Objects.equals(dateTimeFormatter.format(), that.dateTimeFormatter.format()) && Objects.equals(dateTimeFormatter.locale(), that.dateTimeFormatter.locale()); }
protected void assertFieldTypeNotEquals(String property, MappedFieldType ft1, MappedFieldType ft2) { if (ft1.equals(ft2)) { fail("Expected inequality, testing property " + property + "\nfirst: " + toString(ft1) + "; \nsecond: " + toString(ft2) + "\n"); } }
protected void assertFieldTypeEquals(String property, MappedFieldType ft1, MappedFieldType ft2) { if (ft1.equals(ft2) == false) { fail("Expected equality, testing property " + property + "\nexpected: " + toString(ft1) + "; \nactual: " + toString(ft2) + "\n"); } }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof CompletionFieldType)) return false; if (!super.equals(o)) return false; CompletionFieldType fieldType = (CompletionFieldType) o; return analyzingSuggestLookupProvider.getPreserveSep() == fieldType.analyzingSuggestLookupProvider.getPreserveSep() && analyzingSuggestLookupProvider.getPreservePositionsIncrements() == fieldType.analyzingSuggestLookupProvider.getPreservePositionsIncrements() && analyzingSuggestLookupProvider.hasPayloads() == fieldType.analyzingSuggestLookupProvider.hasPayloads() && Objects.equals(getContextMapping(), fieldType.getContextMapping()); }