private boolean hasPropertyChange()

in src/main/java/org/apache/sling/jcr/repoinit/impl/NodePropertiesVisitor.java [309:329]


    private boolean hasPropertyChange(Property oldProperty, int newType, Value... newValues)
            throws RepositoryException {
        if (oldProperty == null || oldProperty.getType() != newType) {
            return true;
        }

        final Value[] oldValues =
                oldProperty.isMultiple() ? oldProperty.getValues() : new Value[] {oldProperty.getValue()};
        if (oldValues.length != newValues.length) {
            return true;
        }

        for (int i = 0; i < oldValues.length; i++) {
            final Value oldValue = oldValues[i];
            final Value newValue = newValues[i];
            if (!valueEquals(oldValue, newValue)) {
                return true;
            }
        }
        return false;
    }