public static Predicate < Map . Entry < Long , Boolean > > amongDeadHsids ( final Set < Long > hsids ) { return new Predicate < Map . Entry < Long , Boolean > > ( ) { @ Override public boolean apply ( Entry < Long , Boolean > e ) { return hsids . contains ( e . getKey ( ) ) && e . getValue ( ) ; } } ; }
returns a map entry predicate that tests whether or not the given map entry describes a dead site