Mega Code Archive

 
Categories / Java Book / 005 Collection
 

0337 Create set from a map

static<E> Set<E> newSetFromMap(Map<E,Boolean> map) Returns a set backed by the specified map.