kopia lustrzana https://github.com/onthegomap/planetiler
fix record formatting
rodzic
2800c339f8
commit
20506de8cc
|
@ -157,6 +157,7 @@
|
|||
<option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true" />
|
||||
<option name="TERNARY_OPERATION_WRAP" value="1" />
|
||||
<option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" />
|
||||
<option name="KEEP_SIMPLE_CLASSES_IN_ONE_LINE" value="true" />
|
||||
<option name="FOR_STATEMENT_WRAP" value="1" />
|
||||
<option name="ARRAY_INITIALIZER_WRAP" value="1" />
|
||||
<option name="WRAP_COMMENTS" value="true" />
|
||||
|
|
|
@ -72,71 +72,4 @@ public interface ZoomFunction<T> extends IntFunction<T> {
|
|||
|
||||
U apply(int zoom, T t);
|
||||
}
|
||||
|
||||
// static ZoomFunction ranges(Range... ranges) {
|
||||
// }
|
||||
|
||||
// static OfDouble doubleRanges(double defaultValue, DoubleRange... ranges) {
|
||||
// }
|
||||
//
|
||||
// static OfInt intRanges(int defaultValue, IntRange... ranges) {
|
||||
// }
|
||||
//
|
||||
// static ZoomFunction maxZoom(int max, Object value) {
|
||||
// }
|
||||
//
|
||||
// static OfDouble doubleThreshold(double valueBelowThreshold, int threshold, double valueAtOrAboveThreshold) {
|
||||
// }
|
||||
//
|
||||
// static OfInt intThreshold(int valueBelowThreshold, int threshold, int valueAtOrAboveThreshold) {
|
||||
// }
|
||||
//
|
||||
// static OfDouble metersToPixelsAtEquator(int i, DoubleRange doubleRange, DoubleRange doubleRange1,
|
||||
// DoubleRange doubleRange2) {
|
||||
// }
|
||||
//
|
||||
// record Range(int min, int max, Object value) {
|
||||
//
|
||||
// }
|
||||
//
|
||||
// static Range range(int min, int max, Object value) {
|
||||
// return new Range(min, max, value);
|
||||
// }
|
||||
//
|
||||
// record DoubleRange(int min, int max, double value) {
|
||||
//
|
||||
// }
|
||||
//
|
||||
// static DoubleRange doubleRange(int min, int max, double value) {
|
||||
// return new DoubleRange(min, max, value);
|
||||
// }
|
||||
//
|
||||
// record IntRange(int min, int max, int value) {
|
||||
//
|
||||
// }
|
||||
//
|
||||
// static IntRange intRange(int min, int max, int value) {
|
||||
// return new IntRange(min, max, value);
|
||||
// }
|
||||
|
||||
// interface OfDouble extends IntToDoubleFunction, ZoomFunction {
|
||||
//
|
||||
// @Override
|
||||
// default Double apply(int value) {
|
||||
// return applyAsDouble(value);
|
||||
// }
|
||||
//
|
||||
// default OfDouble metersToPixelsAtEquator() {
|
||||
// return (int i) -> applyAsDouble(i) / GeoUtils.metersPerPixelAtEquator(i);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// interface OfInt extends IntUnaryOperator, ZoomFunction {
|
||||
//
|
||||
// @Override
|
||||
// default Integer apply(int value) {
|
||||
// return applyAsInt(value);
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
|
|
|
@ -15,7 +15,5 @@ public record RenderedFeature(
|
|||
assert vectorTileFeature != null;
|
||||
}
|
||||
|
||||
public static record Group(long group, int limit) {
|
||||
|
||||
}
|
||||
public static record Group(long group, int limit) {}
|
||||
}
|
||||
|
|
|
@ -330,9 +330,7 @@ class TiledGeometry {
|
|||
if (x < 0 || x >= max) {
|
||||
return null;
|
||||
}
|
||||
record SkippedSegment(Direction side, int lo, int hi) {
|
||||
|
||||
}
|
||||
record SkippedSegment(Direction side, int lo, int hi) {}
|
||||
List<SkippedSegment> skipped = null;
|
||||
for (int i = 0; i < stripeSegment.size() - 1; i++) {
|
||||
double ax = stripeSegment.getX(i);
|
||||
|
|
|
@ -578,9 +578,7 @@ public class FlatMapTest {
|
|||
|
||||
private static record FlatMapResults(
|
||||
Map<TileCoord, List<TestUtils.ComparableFeature>> tiles, Map<String, String> metadata
|
||||
) {
|
||||
|
||||
}
|
||||
) {}
|
||||
|
||||
private static record TestProfile(
|
||||
@Override String name,
|
||||
|
|
|
@ -337,9 +337,7 @@ public class TestUtils {
|
|||
public static record ComparableFeature(
|
||||
GeometryComparision geometry,
|
||||
Map<String, Object> attrs
|
||||
) {
|
||||
|
||||
}
|
||||
) {}
|
||||
|
||||
public static ComparableFeature feature(Geometry geom, Map<String, Object> attrs) {
|
||||
return new ComparableFeature(new NormGeometry(geom), attrs);
|
||||
|
|
|
@ -79,9 +79,7 @@ public class FeatureGroupTest {
|
|||
return map;
|
||||
}
|
||||
|
||||
private static record Feature(Map<String, Object> attrs, Geometry geom) {
|
||||
|
||||
}
|
||||
private static record Feature(Map<String, Object> attrs, Geometry geom) {}
|
||||
|
||||
@Test
|
||||
public void testPutPoints() {
|
||||
|
|
|
@ -147,12 +147,8 @@ public class FeatureRendererTest {
|
|||
@TestFactory
|
||||
public List<DynamicTest> testProcessPointsNearInternationalDateLineAndPoles() {
|
||||
double d = 1d / 512;
|
||||
record X(double x, double wrapped, double z1x0, double z1x1) {
|
||||
|
||||
}
|
||||
record Y(double y, int z1ty, double tyoff) {
|
||||
|
||||
}
|
||||
record X(double x, double wrapped, double z1x0, double z1x1) {}
|
||||
record Y(double y, int z1ty, double tyoff) {}
|
||||
var xs = List.of(
|
||||
new X(-d, 1 - d, -1, 255),
|
||||
new X(d, 1 + d, 1, 257),
|
||||
|
|
Ładowanie…
Reference in New Issue