@Test public void testEquals() { assertEquals(mCutoutTopBottomClone, mCutoutTopBottom); if (SDK_INT >= 28) { assertNotEquals(mCutoutTopBottom, mCutoutLeftRight); } }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } DisplayCutoutCompat other = (DisplayCutoutCompat) o; return mDisplayCutout == null ? other.mDisplayCutout == null : mDisplayCutout.equals(other.mDisplayCutout); }
DisplayCutoutCompat { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } DisplayCutoutCompat other = (DisplayCutoutCompat) o; return mDisplayCutout == null ? other.mDisplayCutout == null : mDisplayCutout.equals(other.mDisplayCutout); } }
DisplayCutoutCompat { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } DisplayCutoutCompat other = (DisplayCutoutCompat) o; return mDisplayCutout == null ? other.mDisplayCutout == null : mDisplayCutout.equals(other.mDisplayCutout); } DisplayCutoutCompat(Rect safeInsets, List<Rect> boundingRects); private  DisplayCutoutCompat(Object displayCutout); }
DisplayCutoutCompat { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } DisplayCutoutCompat other = (DisplayCutoutCompat) o; return mDisplayCutout == null ? other.mDisplayCutout == null : mDisplayCutout.equals(other.mDisplayCutout); } DisplayCutoutCompat(Rect safeInsets, List<Rect> boundingRects); private  DisplayCutoutCompat(Object displayCutout); int getSafeInsetTop(); int getSafeInsetBottom(); int getSafeInsetLeft(); int getSafeInsetRight(); List<Rect> getBoundingRects(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
DisplayCutoutCompat { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } DisplayCutoutCompat other = (DisplayCutoutCompat) o; return mDisplayCutout == null ? other.mDisplayCutout == null : mDisplayCutout.equals(other.mDisplayCutout); } DisplayCutoutCompat(Rect safeInsets, List<Rect> boundingRects); private  DisplayCutoutCompat(Object displayCutout); int getSafeInsetTop(); int getSafeInsetBottom(); int getSafeInsetLeft(); int getSafeInsetRight(); List<Rect> getBoundingRects(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }