List of usage examples for android.os Looper equals
public boolean equals(Object obj)
From source file:Main.java
public static boolean isUiThread() { final Looper myLooper = Looper.myLooper(); final Looper mainLooper = Looper.getMainLooper(); // never null return mainLooper.equals(myLooper); }