23 lines
600 B
Java
23 lines
600 B
Java
|
package androidx.transition;
|
||
|
|
||
|
import android.view.View;
|
||
|
import android.view.WindowId;
|
||
|
import androidx.annotation.NonNull;
|
||
|
import androidx.annotation.RequiresApi;
|
||
|
@RequiresApi(18)
|
||
|
public class WindowIdApi18 implements WindowIdImpl {
|
||
|
private final WindowId mWindowId;
|
||
|
|
||
|
public WindowIdApi18(@NonNull View view) {
|
||
|
this.mWindowId = view.getWindowId();
|
||
|
}
|
||
|
|
||
|
public boolean equals(Object obj) {
|
||
|
return (obj instanceof WindowIdApi18) && ((WindowIdApi18) obj).mWindowId.equals(this.mWindowId);
|
||
|
}
|
||
|
|
||
|
public int hashCode() {
|
||
|
return this.mWindowId.hashCode();
|
||
|
}
|
||
|
}
|