title: How to filter duplicate values emitted by observable in RXJava?
body: <p>I have a collection of objects, where i want to suppress duplicate items. I know about <a href="http://reactivex.io/documentation/operators/distinct.html">Distinct</a> operator, but if i am not mistaken it compare items by properly overrided hashcode method. But what if my hashcode returns different values for same objects, and i want to set equality by my own. distinct have 2 overloaded methods - one without params and one with Func1 param,i suppose that i should use 2nd method, but how exaclty?</p>
  
  <pre><code>    .distinct(new Func1&lt;ActivityManager.RunningServiceInfo, Object&gt;() {
                          @Override
                          public Object call(ActivityManager.RunningServiceInfo runningServiceInfo) {
                              return null;
                          }
                      })
  </code></pre>