# | Line 3502 | Line 3502 | public class Collections { | |
---|---|---|
3502 | * @param map the backing map | |
3503 | * @return the set backed by the map | |
3504 | * @throws IllegalArgumentException if <tt>map</tt> is not empty | |
3505 | + | * @since 1.6 |
3506 | */ | |
3507 | public static <E> Set<E> asSet(Map<E, Boolean> map) { | |
3508 | return new MapAsSet<E>(map); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |