public List<String> getPropertyKeys(String propertyName) { Value value = getValue(propertyName); return value == null ? Collections.EMPTY_LIST : value.getPropertyKeys(); }
/** * Performs an equality check based on equality of values. * {@link Value#equals(Object) Equality} of Values varies if the Value is * {@link Value#isDynamic() dynamic}. */ public boolean equals(Object other) { if (other == this) return true; if (other == null) return false; if (!getClass().equals(other.getClass())) return false; // compare properties ConfigurationImpl conf = (ConfigurationImpl) other; if (_vals.size() != conf.getValues().length) return false; for(Value v : _vals) { String propName = v.getProperty(); Value thisV = this.getValue(propName); Value thatV = conf.getValue(propName); if (!thisV.equals(thatV)) { return false; } } return true; }
/** * Performs an equality check based on equality of values. * {@link Value#equals(Object) Equality} of Values varies if the Value is * {@link Value#isDynamic() dynamic}. */ public boolean equals(Object other) { if (other == this) return true; if (other == null) return false; if (!getClass().equals(other.getClass())) return false; // compare properties ConfigurationImpl conf = (ConfigurationImpl) other; if (_vals.size() != conf.getValues().length) return false; for(Value v : _vals) { String propName = v.getProperty(); Value thisV = this.getValue(propName); Value thatV = conf.getValue(propName); if (!thisV.equals(thatV)) { return false; } } return true; }
public List<String> getPropertyKeys(String propertyName) { Value value = getValue(propertyName); return value == null ? Collections.EMPTY_LIST : value.getPropertyKeys(); }
/** * Performs an equality check based on equality of values. * {@link Value#equals(Object) Equality} of Values varies if the Value is * {@link Value#isDynamic() dynamic}. */ public boolean equals(Object other) { if (other == this) return true; if (other == null) return false; if (!getClass().equals(other.getClass())) return false; // compare properties ConfigurationImpl conf = (ConfigurationImpl) other; if (_vals.size() != conf.getValues().length) return false; for(Value v : _vals) { String propName = v.getProperty(); Value thisV = this.getValue(propName); Value thatV = conf.getValue(propName); if (!thisV.equals(thatV)) { return false; } } return true; }
public List<String> getPropertyKeys(String propertyName) { Value value = getValue(propertyName); return value == null ? Collections.EMPTY_LIST : value.getPropertyKeys(); }
/** * Performs an equality check based on equality of values. * {@link Value#equals(Object) Equality} of Values varies if the Value is * {@link Value#isDynamic() dynamic}. */ public boolean equals(Object other) { if (other == this) return true; if (other == null) return false; if (!getClass().equals(other.getClass())) return false; // compare properties ConfigurationImpl conf = (ConfigurationImpl) other; if (_vals.size() != conf.getValues().length) return false; Iterator values = _vals.iterator(); while (values.hasNext()) { Value v = (Value)values.next(); Value thatV = conf.getValue(v.getProperty()); if (!v.equals(thatV)) { return false; } } return true; }