@Test public void simplify_returnSameListWhenListSizeIsLessThanOrEqualToTwo(){ final List<Point> path = new ArrayList<>(); path.add(Point.fromLngLat(0, 0)); path.add(Point.fromLngLat(10, 0)); List<Point> simplifiedPath = simplify(path, PRECISION_6, true); assertTrue("Returned list is different from input list", path == simplifiedPath); }
@NonNull public static List<Point> simplify(@NonNull List<Point> points) { return simplify(points, SIMPLIFY_DEFAULT_TOLERANCE, SIMPLIFY_DEFAULT_HIGHEST_QUALITY); }
PolylineUtils { @NonNull public static List<Point> simplify(@NonNull List<Point> points) { return simplify(points, SIMPLIFY_DEFAULT_TOLERANCE, SIMPLIFY_DEFAULT_HIGHEST_QUALITY); } }
PolylineUtils { @NonNull public static List<Point> simplify(@NonNull List<Point> points) { return simplify(points, SIMPLIFY_DEFAULT_TOLERANCE, SIMPLIFY_DEFAULT_HIGHEST_QUALITY); } private  PolylineUtils(); }
PolylineUtils { @NonNull public static List<Point> simplify(@NonNull List<Point> points) { return simplify(points, SIMPLIFY_DEFAULT_TOLERANCE, SIMPLIFY_DEFAULT_HIGHEST_QUALITY); } private  PolylineUtils(); @NonNull static List<Point> decode(@NonNull final String encodedPath, int precision); @NonNull static String encode(@NonNull final List<Point> path, int precision); @NonNull static List<Point> simplify(@NonNull List<Point> points); @NonNull static List<Point> simplify(@NonNull List<Point> points, double tolerance); @NonNull static List<Point> simplify(@NonNull List<Point> points, boolean highestQuality); @NonNull static List<Point> simplify(@NonNull List<Point> points, double tolerance,
                                     boolean highestQuality); }
PolylineUtils { @NonNull public static List<Point> simplify(@NonNull List<Point> points) { return simplify(points, SIMPLIFY_DEFAULT_TOLERANCE, SIMPLIFY_DEFAULT_HIGHEST_QUALITY); } private  PolylineUtils(); @NonNull static List<Point> decode(@NonNull final String encodedPath, int precision); @NonNull static String encode(@NonNull final List<Point> path, int precision); @NonNull static List<Point> simplify(@NonNull List<Point> points); @NonNull static List<Point> simplify(@NonNull List<Point> points, double tolerance); @NonNull static List<Point> simplify(@NonNull List<Point> points, boolean highestQuality); @NonNull static List<Point> simplify(@NonNull List<Point> points, double tolerance,
                                     boolean highestQuality);  }