public Collection<HstComponentInfo> getComponentInfos() { if (componentInfos == null) { componentInfos = new ArrayList<HstComponentInfo>(); for (KeyValue<HstComponentInfo, Collection<HstComponentException>> pair : componentExceptions) { componentInfos.add(pair.getKey()); } } return componentInfos; }
public Collection<HstComponentInfo> getComponentInfos() { if (componentInfos == null) { componentInfos = new ArrayList<HstComponentInfo>(); for (KeyValue<HstComponentInfo, Collection<HstComponentException>> pair : componentExceptions) { componentInfos.add(pair.getKey()); } } return componentInfos; }
/** * Constructs a new pair from the specified <code>KeyValue</code>. * * @param pair * the pair to copy, must not be null * @param compareByKeyOnly * flag if equals() depends on key only * @throws NullPointerException * if the entry is null */ public DefaultKeyValue(final KeyValue<K, V> pair, final boolean compareByKeyOnly) { this(pair.getKey(), pair.getValue(), compareByKeyOnly); }
/** * Constructs a new pair from the specified <code>KeyValue</code>. * * @param pair * the pair to copy, must not be null * @param compareByKeyOnly * flag if equals() depends on key only * @throws NullPointerException * if the entry is null */ public MockKeyValue(final KeyValue<K, V> pair, final boolean compareByKeyOnly) { this(pair.getKey(), pair.getValue(), compareByKeyOnly); }
public Collection<HstComponentException> getComponentExceptions(HstComponentInfo componentInfo) { for (KeyValue<HstComponentInfo, Collection<HstComponentException>> pair : componentExceptions) { HstComponentInfo componentInfoKey = pair.getKey(); if (componentInfoKey.getId().equals(componentInfo.getId())) { return pair.getValue(); } } return Collections.emptyList(); }
public Collection<HstComponentException> getComponentExceptions(HstComponentInfo componentInfo) { for (KeyValue<HstComponentInfo, Collection<HstComponentException>> pair : componentExceptions) { HstComponentInfo componentInfoKey = pair.getKey(); if (componentInfoKey.getId().equals(componentInfo.getId())) { return pair.getValue(); } } return Collections.emptyList(); }
path = removeFacetKeyValueFromPath(path, toRemove.getFacetValueCombi().getKey(), toRemove.getFacetValueCombi().getValue());
Matcher matcher = pair.getKey().matcher(valueString);
String removeFacetValue = "/"+toRemove.getFacetValueCombi().getKey()+"/"+toRemove.getFacetValueCombi().getValue(); if(path.contains(removeFacetValue)) { path = path.replace(removeFacetValue, "");
Matcher matcher = pair.getKey().matcher(pathInfo);
addResponseHeadElement(entry.getValue(), entry.getKey());