EdgeInsets.java 519B

12345678910111213141516171819202122
  1. package com.th3rdwave.safeareacontext;
  2. /* package */ class EdgeInsets {
  3. float top;
  4. float right;
  5. float bottom;
  6. float left;
  7. EdgeInsets(float top, float right, float bottom, float left) {
  8. this.top = top;
  9. this.right = right;
  10. this.bottom = bottom;
  11. this.left = left;
  12. }
  13. boolean equalsToEdgeInsets(EdgeInsets other) {
  14. if (this == other) {
  15. return true;
  16. }
  17. return this.top == other.top && this.right == other.right && this.bottom == other.bottom && this.left == other.left;
  18. }
  19. }