283284285286287288289290291292293
*/ void _testViews(AttributeMap map) { AttributeSet keySet = map.getKeySet(); Enumeration keyIter = keySet.elements(); while (keyIter.hasMoreElements()) { if (!map.containsKey(keyIter.nextElement())) { errln("keySet contains key not in map"); } }
5859606162636465666768
if (set2.contains(elem1)) { errln("Set contents are wrong."); } Enumeration iter = set2.elements(); if (!iter.nextElement().equals(elem4)) { errln("Invalid object in iterator."); } AttributeSet union = set2.unionWith(set1);