Implementing a Custom Comparator
<p>I'm working on code for a specific API (i.e., I can't alter the methods they've given). They have a Comparator variable defined:</p>

<pre><code>public final Comparator&lt;Point&gt; SLOPE_ORDER;
</code></pre>

<p>and they want SLOPE_ORDER to have a custom compare() method that compares the slopes of a given point and two other objects. I'm working within a public class defined like this:</p>

<pre><code>public class Point implements Comparable&lt;Point&gt;
</code></pre>

<p>Having never worked with Java comparators before, I'm at a bit of a loss as to how to implement a custom comparator. Keep in mind that I can't break this API, and the custom comparator has to come from SLOPE_ORDER. </p>
