title: Android firebase query equivalence
body: <p>In my Android app I need to compare equivalence of two Firebase database query objects. Is there some way for me to assert that two query objects are equivalent based on their database references and query parameters? </p>
  
  <p>The Javascript Firebase version of the Query class has an isEqual() method which produces the desired behaviour. 
  <a href="https://firebase.google.com/docs/reference/js/firebase.database.Query" rel="nofollow noreferrer">https://firebase.google.com/docs/reference/js/firebase.database.Query</a></p>
  
  <p>I tried the following equivalence test in my Android code but this does not produce expected behaviour:</p>
  
  <pre><code>Reference ref = Firebase.getInstance();
  String child = "childKey"; //this is a valid child of ref
  Query query1 = ref.child(child).limitTo(10);
  Query query2 = ref.child(child).limitTo(10);
  query1 == query2 //false
  query1.equals(query2) //false
  </code></pre>