MCPcopy
hub / github.com/careercup/ctci / contains

Method contains

java/Chapter 7/Question7_5/Square.java:21–26  ·  view source on GitHub ↗
(Square other)

Source from the content-addressed store, hash-verified

19 }
20
21 public boolean contains(Square other) {
22 if (this.left <= other.left && this.right >= other.right && this.top <= other.top && this.bottom >= other.bottom) {
23 return true;
24 }
25 return false;
26 }
27
28 /* Return the point where the line segment connecting mid1 and
29 * mid2 intercepts the edge of square 1. That is, draw a line

Callers 7

transformMethod · 0.45
isPartialOKMethod · 0.45
deleteDupsAMethod · 0.45
removeMinMethod · 0.45
parseMethod · 0.45
parseOptimizedMethod · 0.45
parseSimpleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected