/** * Gets an unmodifiable view as a Set. * * @return an unmodifiable set view */ public Set asSet() { return UnmodifiableSet.decorate(set); }
/** * Returns an unmodifiable set backed by the given set. * <p> * This method uses the implementation in the decorators subpackage. * * @param set the set to make unmodifiable, must not be null * @return an unmodifiable set backed by the given set * @throws IllegalArgumentException if the set is null */ public static Set unmodifiableSet(Set set) { return UnmodifiableSet.decorate(set); }
/** * Returns an unmodifiable set backed by the given set. * <p> * This method uses the implementation in the decorators subpackage. * * @param set the set to make unmodifiable, must not be null * @return an unmodifiable set backed by the given set * @throws IllegalArgumentException if the set is null */ public static Set unmodifiableSet(Set set) { return UnmodifiableSet.decorate(set); }
/** * Returns an unmodifiable view of the underlying map's key set. * * @return the set of unique elements in this bag */ public Set uniqueSet() { return UnmodifiableSet.decorate(_map.keySet()); }
public Set entrySet() { Set set = map.entrySet(); // unmodifiable set will still allow modification via Map.Entry objects return UnmodifiableSet.decorate(set); }
/** * Returns an unmodifiable view of the underlying map's key set. * * @return the set of unique elements in this bag */ public Set uniqueSet() { if (uniqueSet == null) { uniqueSet = UnmodifiableSet.decorate(map.keySet()); } return uniqueSet; }
public Set keySet() { Set set = map.keySet(); return UnmodifiableSet.decorate(set); }
public Set entrySet() { Set set = map.entrySet(); return UnmodifiableSet.decorate(set); }
public Set keySet() { Set set = map.keySet(); return UnmodifiableSet.decorate(set); }
/** * Get the keys for this BeanMap. * <p> * Write-only properties are <b>not</b> included in the returned set of * property names, although it is possible to set their value and to get * their type. * * @return BeanMap keys. The Set returned by this method is not * modifiable. */ public Set keySet() { return UnmodifiableSet.decorate(readMethods.keySet()); }
public Set keySet() { Set set = super.keySet(); return UnmodifiableSet.decorate(set); }
public Set keySet() { Set set = super.keySet(); return UnmodifiableSet.decorate(set); }
public Set keySet() { Set set = super.keySet(); return UnmodifiableSet.decorate(set); }
public Set keySet() { Set set = super.keySet(); return UnmodifiableSet.decorate(set); }
public Set keySet() { Set set = super.keySet(); return UnmodifiableSet.decorate(set); }
public Set keySet() { Set set = super.keySet(); return UnmodifiableSet.decorate(set); }
public Set makeEmptySet() { return UnmodifiableSet.decorate(new HashSet()); }
public Set uniqueSet() { Set set = getBag().uniqueSet(); return UnmodifiableSet.decorate(set); }
public Set uniqueSet() { Set set = getBag().uniqueSet(); return UnmodifiableSet.decorate(set); }
public Set makeFullSet() { HashSet set = new HashSet(); set.addAll(Arrays.asList(getFullElements())); return UnmodifiableSet.decorate(set); }