public HostAndPort(String host, Integer port) { Contracts.assertNotNull( host, "host" ); Contracts.assertNotNull( host, "port" ); this.host = host; this.port = port; }
/** * Instantiates a new MultiPoint. * * @param points the list of points */ public GeoMultiPoint(List<GeoPoint> points) { super( TYPE ); Contracts.assertNotNull( points, "points" ); this.points = points; }
/** * Instantiates a new MultiPoint. * * @param points the list of points */ public GeoMultiPoint(List<GeoPoint> points) { super( TYPE ); Contracts.assertNotNull( points, "points" ); this.points = points; }
/** * Adds a new hole to the polygon. * * @param hole a hole, must be contained in the exterior ring and must not overlap or * intersect another hole * @return this for chaining */ public GeoPolygon addHole(List<GeoPoint> hole) { Contracts.assertNotNull( hole, "hole" ); this.rings.add( hole ); return this; }
/** * Instantiates a new MultiPoint. * * @param point the first point */ public GeoMultiPoint(GeoPoint point) { super( TYPE ); Contracts.assertNotNull( point, "point" ); this.points.add( point ); }
/** * Instantiates a new Polygon. * * @param exteriorRing the exterior ring of the polygon, it cannot self-intersect */ public GeoPolygon(List<GeoPoint> exteriorRing) { super( TYPE ); Contracts.assertNotNull( exteriorRing, "exteriorRing" ); this.rings.add( exteriorRing ); }
/** * Adds a new hole to the polygon. * * @param hole a hole, must be contained in the exterior ring and must not overlap or * intersect another hole * @return this for chaining */ public GeoPolygon addHole(List<GeoPoint> hole) { Contracts.assertNotNull( hole, "hole" ); this.rings.add( hole ); return this; }
/** * Adds a new point. * * @param point a point * @return this for chaining */ public GeoMultiPoint addPoint(GeoPoint point) { Contracts.assertNotNull( point, "point" ); this.points.add( point ); return this; }
/** * Instantiates a new MultiPoint. * * @param point the first point */ public GeoMultiPoint(GeoPoint point) { super( TYPE ); Contracts.assertNotNull( point, "point" ); this.points.add( point ); }
/** * Adds a new point. * * @param point a point * @return this for chaining */ public GeoMultiPoint addPoint(GeoPoint point) { Contracts.assertNotNull( point, "point" ); this.points.add( point ); return this; }
/** * Adds new holes to the polygon. * * @param holes holes, must be contained in the exterior ring and must not overlap or * intersect another hole * @return this for chaining */ public GeoPolygon addHoles(List<List<GeoPoint>> holes) { Contracts.assertNotNull( holes, "holes" ); this.rings.addAll( holes ); return this; }
/** * Instantiates a new MultiPolygon. * * @param firstPolygon the first Polygon * @param additionalPolygons the additional Polygons */ public GeoMultiPolygon(GeoPolygon firstPolygon, GeoPolygon... additionalPolygons) { super( TYPE ); Contracts.assertNotNull( firstPolygon, "firstPolygon" ); Contracts.assertNotNull( additionalPolygons, "additionalPolygons" ); this.polygons = new ArrayList<>( Arrays.asList( ArrayHelper.concat( firstPolygon, additionalPolygons ) ) ); }
/** * Instantiates a new MultiPoint. * * @param firstPoint the first point * @param additionalPoints the additional points */ public GeoMultiPoint(GeoPoint firstPoint, GeoPoint... additionalPoints) { super( TYPE ); Contracts.assertNotNull( firstPoint, "firstPoint" ); Contracts.assertNotNull( additionalPoints, "additionalPoints" ); this.points = new ArrayList<>( Arrays.asList( ArrayHelper.concat( firstPoint, additionalPoints ) ) ); }
/** * Instantiates a new MultiPoint. * * @param firstPoint the first point * @param additionalPoints the additional points */ public GeoMultiPoint(GeoPoint firstPoint, GeoPoint... additionalPoints) { super( TYPE ); Contracts.assertNotNull( firstPoint, "firstPoint" ); Contracts.assertNotNull( additionalPoints, "additionalPoints" ); this.points = new ArrayList<>( Arrays.asList( ArrayHelper.concat( firstPoint, additionalPoints ) ) ); }
/** * Instantiates a new GeometryCollection. * * @param firstGeoObject the first {@link AbstractGeoJsonObject} * @param additionalGeoObjects the additional {@link AbstractGeoJsonObject} */ public GeoCollection(AbstractGeoJsonObject firstGeoObject, AbstractGeoJsonObject... additionalGeoObjects) { super( TYPE ); Contracts.assertNotNull( firstGeoObject, "firstGeoObject" ); Contracts.assertNotNull( additionalGeoObjects, "additionalGeoObjects" ); this.geometries = new ArrayList<>( Arrays.asList( ArrayHelper.concat( firstGeoObject, additionalGeoObjects ) ) ); }
/** * Instantiates a new GeometryCollection. * * @param firstGeoObject the first {@link AbstractGeoJsonObject} * @param additionalGeoObjects the additional {@link AbstractGeoJsonObject} */ public GeoCollection(AbstractGeoJsonObject firstGeoObject, AbstractGeoJsonObject... additionalGeoObjects) { super( TYPE ); Contracts.assertNotNull( firstGeoObject, "firstGeoObject" ); Contracts.assertNotNull( additionalGeoObjects, "additionalGeoObjects" ); this.geometries = new ArrayList<>( Arrays.asList( ArrayHelper.concat( firstGeoObject, additionalGeoObjects ) ) ); }
/** * Instantiates a new MultiLineString. * * @param firstLineString the first LineString * @param additionalLineStrings the additional LineStrings */ public GeoMultiLineString(GeoLineString firstLineString, GeoLineString... additionalLineStrings) { super( TYPE ); Contracts.assertNotNull( firstLineString, "firstLineString" ); Contracts.assertNotNull( additionalLineStrings, "additionalLineStrings" ); this.lineStrings = new ArrayList<>( Arrays.asList( ArrayHelper.concat( firstLineString, additionalLineStrings ) ) ); }
/** * Instantiates a new MultiLineString. * * @param firstLineString the first LineString * @param additionalLineStrings the additional LineStrings */ public GeoMultiLineString(GeoLineString firstLineString, GeoLineString... additionalLineStrings) { super( TYPE ); Contracts.assertNotNull( firstLineString, "firstLineString" ); Contracts.assertNotNull( additionalLineStrings, "additionalLineStrings" ); this.lineStrings = new ArrayList<>( Arrays.asList( ArrayHelper.concat( firstLineString, additionalLineStrings ) ) ); }
public static StringBuilder compare(StringBuilder builder, String operator, Object value) { Contracts.assertNotNull( value, "Value" ); builder.append( operator ); literal( builder, value ); return builder; }
@Override public ClassPropertyReaderContext<T> instantiate() { Contracts.assertNotNull( classLoaderService, "classLoaderService" ); return new DefaultClassPropertyReaderContext<T>( classLoaderService, configuredValue, propertyName, targetType, defaultValue, isRequired, validators ); }