Class MPPair<F,​S>


  • public class MPPair<F,​S>
    extends android.util.Pair<F,​S>
    Extends Pair class to be backwards compatible with old Android versions. Before Jelly Bean, Pair.hashCode() and Pair.equals(Object) methods assume the first and second objects are never null. However, Mixpanel relies on the fist object to be null to apply wildcard changes.
    • Field Summary

      • Fields inherited from class android.util.Pair

        first, second
    • Constructor Summary

      Constructors 
      Constructor Description
      MPPair​(F first, S second)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      • Methods inherited from class android.util.Pair

        create, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MPPair

        public MPPair​(F first,
                      S second)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class android.util.Pair<F,​S>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class android.util.Pair<F,​S>