/** * Given an array of command line option names, an "AttributeList" is * created containing those option names and the values for each. Called by * a JMX Agent */ public synchronized AttributeList getAttributes(String[] attributeNames) { AttributeList list = new AttributeList(attributeNames.length); for (int i = 0; i < attributeNames.length; i++) { Attribute att = (Attribute) attributes.get(attributeNames[i]); list.add(att); } return list; }
/** * @param attributeName * represents a command line argument to a MySQL database. * @return a String with the value associated the argument */ public synchronized Object getAttribute(String attributeName) throws AttributeNotFoundException { Attribute attribute = ((Attribute) attributes.get(attributeName)); if (attribute == null) { throw new AttributeNotFoundException(attributeName); } return attribute.getValue(); }
/** * @param attributeName * represents a command line argument to a MySQL database. * @return a String with the value associated the argument */ public synchronized Object getAttribute(String attributeName) throws AttributeNotFoundException { Attribute attribute = ((Attribute) attributes.get(attributeName)); if (attribute == null) { throw new AttributeNotFoundException(attributeName); } return attribute.getValue(); }
/** * Given an array of command line option names, an "AttributeList" is * created containing those option names and the values for each. Called by * a JMX Agent */ public synchronized AttributeList getAttributes(String[] attributeNames) { AttributeList list = new AttributeList(attributeNames.length); for (int i = 0; i < attributeNames.length; i++) { Attribute att = (Attribute) attributes.get(attributeNames[i]); list.add(att); } return list; }
public Collection values() { List values = new ArrayList(original.size()); for (Iterator iter = keySet().iterator(); iter.hasNext();) { values.add(get(iter.next())); } return values; } }
public Collection values() { List values = new ArrayList(original.size()); for (Iterator iter = keySet().iterator(); iter.hasNext();) { values.add(get(iter.next())); } return values; } }
@Override public Collection values() { List values = new ArrayList(original.size()); for (Iterator iter = keySet().iterator(); iter.hasNext();) { values.add(get(iter.next())); } return values; } }
public Set entrySet() { Set entries = new LinkedHashSet(); for (Iterator iter = original.entrySet().iterator(); iter.hasNext();) { Object key = ((Map.Entry) iter.next()).getKey(); entries.add(new MapEntry(key, get(key))); } return entries; }
public boolean containsValue(Object value) { for (Iterator iter = keySet().iterator(); iter.hasNext();) { Object val = get(iter.next()); if (value == null) { if (val == null) { return true; } } else { if (value.equals(val)) { return true; } } } return false; }
public boolean containsValue(Object value) { for (Iterator iter = keySet().iterator(); iter.hasNext();) { Object val = get(iter.next()); if (value == null) { if (val == null) { return true; } } else { if (value.equals(val)) { return true; } } } return false; }
public Set entrySet() { Set entries = new LinkedHashSet(); for (Iterator iter = keySet().iterator(); iter.hasNext();) { Object key = iter.next(); entries.add(new MapEntry(key, get(key))); } return entries; }
@Override public Set entrySet() { Set entries = new LinkedHashSet(); for (Iterator iter = keySet().iterator(); iter.hasNext();) { Object key = iter.next(); entries.add(new MapEntry(key, get(key))); } return entries; }
@Override public boolean containsValue(Object value) { for (Iterator iter = keySet().iterator(); iter.hasNext();) { Object val = get(iter.next()); if (value == null) { if (val == null) { return true; } } else { if (value.equals(val)) { return true; } } } return false; }