@Override public final int size() { int size = 0; Enumeration<String> e = getAttributeNames(); if (e != null) { while (e.hasMoreElements()) { e.nextElement(); size++; } } return size; }
@Override public final boolean containsKey(Object key) { if (key == null) { return false; } Enumeration<String> e = getAttributeNames(); if (e != null) { while (e.hasMoreElements()) { if (key.equals(e.nextElement())) { return true; } } } return false; }
@Override public final int size() { int size = 0; Enumeration<String> e = getAttributeNames(); if (e != null) { while (e.hasMoreElements()) { e.nextElement(); size++; } } return size; }
@Override public final boolean containsKey(Object key) { if (key == null) { return false; } Enumeration<String> e = getAttributeNames(); if (e != null) { while (e.hasMoreElements()) { if (key.equals(e.nextElement())) { return true; } } } return false; }
public final Set entrySet() { Enumeration e = getAttributeNames(); Set set = new HashSet(); if (e != null) { while (e.hasMoreElements()) { set.add(new ScopeEntry((String) e.nextElement())); } } return set; }
public final Set entrySet() { Enumeration e = getAttributeNames(); Set set = new HashSet(); if (e != null) { while (e.hasMoreElements()) { set.add(new ScopeEntry((String) e.nextElement())); } } return set; }
@Override public final Set<Map.Entry<String,V>> entrySet() { Enumeration<String> e = getAttributeNames(); Set<Map.Entry<String, V>> set = new HashSet<Map.Entry<String, V>>(); if (e != null) { while (e.hasMoreElements()) { set.add(new ScopeEntry(e.nextElement())); } } return set; }
public final Set entrySet() { Enumeration e = getAttributeNames(); Set set = new HashSet(); if (e != null) { while (e.hasMoreElements()) { set.add(new ScopeEntry((String) e.nextElement())); } } return set; }
@Override public final Set<Map.Entry<String,V>> entrySet() { Enumeration<String> e = getAttributeNames(); Set<Map.Entry<String, V>> set = new HashSet<>(); if (e != null) { while (e.hasMoreElements()) { set.add(new ScopeEntry(e.nextElement())); } } return set; }