@Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (!(obj instanceof FieldComparator)) return false;
        
        @SuppressWarnings("unchecked")
        final FieldComparator<ENTITY> casted =
            (FieldComparator<ENTITY>) obj;
        
        return reversed == casted.isReversed()
            && Objects.equals(
                field.identifier(),
                casted.getField().identifier()
            );
    }
@param <ENTITY> entity type
@param <D>      database type

@author Emil Forslund
@since  3.0.0
runtime-parent/runtime-field/src/main/java/com/speedment/runtime/field/internal/comparator/FloatFieldComparatorImpl.java