class Filter {

    public static Function<Beacon, Boolean> proximityIsNotEqualTo(final Proximity... proximities) {
        return new Function<Beacon, Boolean>() {
            @Override
            public Boolean apply(Beacon beacon) {
                for (Proximity proximity : proximities) {
                    if (beacon.getProximity() != proximity) {
                        return true;
                    }
                }

                return false;
            }
        };
    }

}