public static Predicate<ReactiveSensorEvent> filterAccuracyChanged() {

    return new Predicate<ReactiveSensorEvent>() {
      @Override public boolean test(ReactiveSensorEvent event) throws Exception {
        return event.isAccuracyChanged();
      }
    };
  }
public static Predicate<ReactiveSensorEvent> filterAccuracyChanged() {

    return new Predicate<ReactiveSensorEvent>() {
      @Override public boolean test(ReactiveSensorEvent event) throws Exception {
        return event.isAccuracyChanged();
      }
    };
  }
public static Predicate < ReactiveSensorEvent > filterAccuracyChanged ( ) { return new Predicate < ReactiveSensorEvent > ( ) { @ Override public boolean test ( ReactiveSensorEvent event ) throws Exception { return event . isAccuracyChanged ( ) ; } } ; }
Predicate, which can be used in filter(...) method from RxJava
to filter all events in which accuracy value has changed

@return BiPredicate<ReactiveSensorEvent, Boolean> predicate indicating if accuracy value has
changed
Predicate which can be used in filter ( ... ) method from RxJava to filter all events in which accuracy value has changed