@Override
    public boolean equals(Object object) {
        if (this == object) {
            return true;
        }
        if (object == null || object.getClass() != getClass()) {
            return false;
        }
        DefineList otherDefineList = (DefineList) object;
        if (values.length != otherDefineList.values.length) {
            return false;
        }
        if (!isSet.equals(otherDefineList.isSet)) {
            return false;
        }
        for (int i = 0; i < values.length; i++) {
            if (values[i] != otherDefineList.values[i]) {
                return false;
            }
        }
        return true;
    }
The new define list.

@author Kirill Vainer
jme3-core/src/main/java/com/jme3/shader/DefineList.java