class Filter {

    public static Function<Beacon, Boolean> distanceIsEqualTo(final double distance) {
        return new Function<Beacon, Boolean>() {
            @Override
            public Boolean apply(Beacon beacon) {
                return beacon.getDistance() == distance;
            }
        };
    }

}