/** * @complexity O(log(n)) with n being the number of attributes of this * element. */ public HashMap<?, ?> getHash(String key) { if (attributes != null) { Object o = attributes.get(key); if (o != null) { if (o instanceof HashMap<?, ?>) return ((HashMap<?, ?>) o); if (o instanceof CompoundAttribute) return ((CompoundAttribute) o).toHashMap(); } } if (nullAttributesAreErrors()) throw new NullAttributeException(key); return null; }
/** * @complexity O(log(n)) with n being the number of attributes of this * element. */ public HashMap<?, ?> getHash(String key) { if (attributes != null) { Object o = attributes.get(key); if (o != null) { if (o instanceof HashMap<?, ?>) return ((HashMap<?, ?>) o); if (o instanceof CompoundAttribute) return ((CompoundAttribute) o).toHashMap(); } } if (nullAttributesAreErrors()) throw new NullAttributeException(key); return null; }
hash = ((CompoundAttribute) value).toHashMap(); else hash = (HashMap<?, ?>) value;
hash = ((CompoundAttribute) value).toHashMap(); else hash = (HashMap<?, ?>) value;