Class Point2D.CompareVectors

  • All Implemented Interfaces:
    java.util.Comparator<Point2D>
    Enclosing class:
    Point2D

    static class Point2D.CompareVectors
    extends java.lang.Object
    implements java.util.Comparator<Point2D>
    • Constructor Summary

      Constructors 
      Constructor Description
      CompareVectors()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(Point2D v1, Point2D v2)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • CompareVectors

        CompareVectors()
    • Method Detail

      • compare

        public int compare​(Point2D v1,
                           Point2D v2)
        Specified by:
        compare in interface java.util.Comparator<Point2D>