/** * Returns an unmodifiable view of the underlying map's key set. * * @return the set of unique elements in this bag */ @Override public Set<E> uniqueSet() { if (uniqueSet == null) { uniqueSet = UnmodifiableSet.<E> unmodifiableSet(map.keySet()); } return uniqueSet; }
AddressRule(boolean includeChildren, AccessType accessType, Collection<Class<?>> types) { Validate.notNull(accessType); Validate.notNull(types); Validate.noNullElements(types); this.includeChildren = includeChildren; this.accessType = accessType; this.types = (UnmodifiableSet<Class<?>>) UnmodifiableSet.unmodifiableSet(new LinkedHashSet<>(types)); }
@Override public Set<K> keySet() { final Set<K> set = super.keySet(); return UnmodifiableSet.unmodifiableSet(set); }
@Override public Set<K> keySet() { return UnmodifiableSet.unmodifiableSet(super.keySet()); }
@Override public Set<Map.Entry<K, V>> entrySet() { final Set<Map.Entry<K, V>> set = map.entrySet(); // unmodifiable set will still allow modification via Map.Entry objects return UnmodifiableSet.unmodifiableSet(set); }
@Override public Set<K> keySet() { final Set<K> set = map.keySet(); return UnmodifiableSet.unmodifiableSet(set); }
@Override public Set<Map.Entry<K, V>> entrySet() { return UnmodifiableSet.unmodifiableSet(map.entrySet()); }
@Override public Set<K> keySet() { return UnmodifiableSet.unmodifiableSet(map.keySet()); }
@Override public Set<E> uniqueSet() { final Set<E> set = decorated().uniqueSet(); return UnmodifiableSet.unmodifiableSet(set); }
@Override public Set<E> uniqueSet() { final Set<E> set = decorated().uniqueSet(); return UnmodifiableSet.<E> unmodifiableSet(set); }
public Set<K> keySet() { return UnmodifiableSet.unmodifiableSet(get.keySet()); }
@Override public Set<MultiSet.Entry<E>> entrySet() { final Set<MultiSet.Entry<E>> set = decorated().entrySet(); return UnmodifiableSet.unmodifiableSet(set); }
@Override public Set<K> keySet() { return UnmodifiableSet.unmodifiableSet(decorated().keySet()); }
@Override public Set<V> values() { final Set<V> set = super.values(); return UnmodifiableSet.unmodifiableSet(set); }