/** * Returns an unmodifiable view of the specified set of {@code asMap} entries. * The {@link Entry#setValue} operation throws an {@link * UnsupportedOperationException}, as do any operations that attempt to modify * the returned collection. * * @param asMapEntries the {@code asMap} entries for which to return an * unmodifiable view * @return an unmodifiable view of the collection entries */ private static <K, V> Set<Entry<K, Collection<V>>> unmodifiableAsMapEntries( Set<Entry<K, Collection<V>>> asMapEntries) { return new UnmodifiableAsMapEntries<K, V>( Collections.unmodifiableSet(asMapEntries)); }
/** * Returns an unmodifiable view of the specified set of {@code asMap} entries. * The {@link Entry#setValue} operation throws an {@link * UnsupportedOperationException}, as do any operations that attempt to modify * the returned collection. * * @param asMapEntries the {@code asMap} entries for which to return an * unmodifiable view * @return an unmodifiable view of the collection entries */ private static <K, V> Set<Entry<K, Collection<V>>> unmodifiableAsMapEntries( Set<Entry<K, Collection<V>>> asMapEntries) { return new UnmodifiableAsMapEntries<K, V>( Collections.unmodifiableSet(asMapEntries)); }
/** * Returns an unmodifiable view of the specified set of {@code asMap} entries. * The {@link Entry#setValue} operation throws an {@link * UnsupportedOperationException}, as do any operations that attempt to modify * the returned collection. * * @param asMapEntries the {@code asMap} entries for which to return an * unmodifiable view * @return an unmodifiable view of the collection entries */ private static <K, V> Set<Entry<K, Collection<V>>> unmodifiableAsMapEntries( Set<Entry<K, Collection<V>>> asMapEntries) { return new UnmodifiableAsMapEntries<K, V>( Collections.unmodifiableSet(asMapEntries)); }
/** * Returns an unmodifiable view of the specified set of {@code asMap} entries. * The {@link Entry#setValue} operation throws an {@link * UnsupportedOperationException}, as do any operations that attempt to modify * the returned collection. * * @param asMapEntries the {@code asMap} entries for which to return an * unmodifiable view * @return an unmodifiable view of the collection entries */ private static <K, V> Set<Entry<K, Collection<V>>> unmodifiableAsMapEntries( Set<Entry<K, Collection<V>>> asMapEntries) { return new UnmodifiableAsMapEntries<K, V>( Collections.unmodifiableSet(asMapEntries)); }
/** * Returns an unmodifiable view of the specified set of {@code asMap} entries. * The {@link Entry#setValue} operation throws an {@link * UnsupportedOperationException}, as do any operations that attempt to modify * the returned collection. * * @param asMapEntries the {@code asMap} entries for which to return an * unmodifiable view * @return an unmodifiable view of the collection entries */ private static <K, V> Set<Entry<K, Collection<V>>> unmodifiableAsMapEntries( Set<Entry<K, Collection<V>>> asMapEntries) { return new UnmodifiableAsMapEntries<K, V>( Collections.unmodifiableSet(asMapEntries)); }
/** * Returns an unmodifiable view of the specified set of {@code asMap} entries. * The {@link Entry#setValue} operation throws an {@link * UnsupportedOperationException}, as do any operations that attempt to modify * the returned collection. * * @param asMapEntries the {@code asMap} entries for which to return an * unmodifiable view * @return an unmodifiable view of the collection entries */ private static <K, V> Set<Entry<K, Collection<V>>> unmodifiableAsMapEntries( Set<Entry<K, Collection<V>>> asMapEntries) { return new UnmodifiableAsMapEntries<K, V>( Collections.unmodifiableSet(asMapEntries)); }
/** * Returns an unmodifiable view of the specified set of {@code asMap} entries. * The {@link Entry#setValue} operation throws an {@link * UnsupportedOperationException}, as do any operations that attempt to modify * the returned collection. * * @param asMapEntries the {@code asMap} entries for which to return an * unmodifiable view * @return an unmodifiable view of the collection entries */ private static <K, V> Set<Entry<K, Collection<V>>> unmodifiableAsMapEntries( Set<Entry<K, Collection<V>>> asMapEntries) { return new UnmodifiableAsMapEntries<K, V>( Collections.unmodifiableSet(asMapEntries)); }