repo_name
stringlengths
7
104
file_path
stringlengths
13
198
context
stringlengths
67
7.15k
import_statement
stringlengths
16
4.43k
code
stringlengths
40
6.98k
prompt
stringlengths
227
8.27k
next_line
stringlengths
8
795
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/MultiPolygonBuilder.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
import java.util.List; import org.ugeojson.builder.common.BuilderConstants; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.LineStringDto; import org.ugeojson.model.geometry.MultiPolygonDto; import org.ugeojson.model.geometry.PolygonDto;
package org.ugeojson.builder.geometry; /** * @author moksuzer * */ public class MultiPolygonBuilder extends GeometryBuilder<MultiPolygonDto> { private static final MultiPolygonBuilder INSTANCE = new MultiPolygonBuilder(); public static MultiPolygonBuilder getInstance() { return INSTANCE; } private MultiP...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
List<PolygonDto> polygons = multiPolygon.getPolygons();
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/MultiPolygonBuilder.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
import java.util.List; import org.ugeojson.builder.common.BuilderConstants; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.LineStringDto; import org.ugeojson.model.geometry.MultiPolygonDto; import org.ugeojson.model.geometry.PolygonDto;
package org.ugeojson.builder.geometry; /** * @author moksuzer * */ public class MultiPolygonBuilder extends GeometryBuilder<MultiPolygonDto> { private static final MultiPolygonBuilder INSTANCE = new MultiPolygonBuilder(); public static MultiPolygonBuilder getInstance() { return INSTANCE; } private MultiP...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
buildTypePart(builder, GeoJSONObjectTypeEnum.MultiPolygon);
mokszr/ultimate-geojson
ugeojson-parser/src/main/java/org/ugeojson/parser/deserializer/MultiPointDeserializer.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
import java.lang.reflect.Type; import java.util.ArrayList; import java.util.List; import org.ugeojson.model.PositionDto; import org.ugeojson.model.geometry.MultiPointDto; import org.ugeojson.parser.util.BoundingBoxParser; import com.google.gson.JsonArray; import com.google.gson.JsonDeserializationContext; import com.go...
package org.ugeojson.parser.deserializer; /** * Deserializer for MultiPoint * * @author moksuzer * */ public class MultiPointDeserializer implements JsonDeserializer<MultiPointDto> { @Override public MultiPointDto deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) { MultiPoi...
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
List<PositionDto> positions = new ArrayList<>();
mokszr/ultimate-geojson
ugeojson-builder/src/test/java/org/ugeojson/builder/geometry/PositionBuilderShould.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/PositionBuilder.java // public class PositionBuilder { // // private static final int MINIMUM_POSITION_DIMENSION = 2; // // private static final PositionBuilder INSTANCE = new PositionBuilder(); // // // public static PositionBuilder getInst...
import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; import org.junit.Test; import org.ugeojson.builder.geometry.PositionBuilder; import org.ugeojson.model.PositionDto;
package org.ugeojson.builder.geometry; public class PositionBuilderShould { @Test public void build_two_dimension_position(){
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/PositionBuilder.java // public class PositionBuilder { // // private static final int MINIMUM_POSITION_DIMENSION = 2; // // private static final PositionBuilder INSTANCE = new PositionBuilder(); // // // public static PositionBuilder getInst...
PositionDto position = new PositionDto(14.147, 36.985);
mokszr/ultimate-geojson
ugeojson-builder/src/test/java/org/ugeojson/builder/geometry/PositionBuilderShould.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/PositionBuilder.java // public class PositionBuilder { // // private static final int MINIMUM_POSITION_DIMENSION = 2; // // private static final PositionBuilder INSTANCE = new PositionBuilder(); // // // public static PositionBuilder getInst...
import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; import org.junit.Test; import org.ugeojson.builder.geometry.PositionBuilder; import org.ugeojson.model.PositionDto;
package org.ugeojson.builder.geometry; public class PositionBuilderShould { @Test public void build_two_dimension_position(){ PositionDto position = new PositionDto(14.147, 36.985);
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/PositionBuilder.java // public class PositionBuilder { // // private static final int MINIMUM_POSITION_DIMENSION = 2; // // private static final PositionBuilder INSTANCE = new PositionBuilder(); // // // public static PositionBuilder getInst...
String positionGeojson = PositionBuilder.getInstance().position(position);
mokszr/ultimate-geojson
ugeojson-builder/src/test/java/org/ugeojson/builder/geometry/MultiPointBuilderShould.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/MultiPointBuilder.java // public class MultiPointBuilder extends GeometryBuilder<MultiPointDto> { // // private static final MultiPointBuilder INSTANCE = new MultiPointBuilder(); // // public static MultiPointBuilder getInstance() { // return I...
import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; import java.util.ArrayList; import java.util.List; import org.junit.Test; import org.ugeojson.builder.geometry.MultiPointBuilder; import org.ugeojson.model.PositionDto; import org.ugeojson.model.geometry.MultiPointDto;
package org.ugeojson.builder.geometry; public class MultiPointBuilderShould { @Test public void build_multipoint() {
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/MultiPointBuilder.java // public class MultiPointBuilder extends GeometryBuilder<MultiPointDto> { // // private static final MultiPointBuilder INSTANCE = new MultiPointBuilder(); // // public static MultiPointBuilder getInstance() { // return I...
MultiPointDto multiPoint = new MultiPointDto();
mokszr/ultimate-geojson
ugeojson-builder/src/test/java/org/ugeojson/builder/geometry/MultiPointBuilderShould.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/MultiPointBuilder.java // public class MultiPointBuilder extends GeometryBuilder<MultiPointDto> { // // private static final MultiPointBuilder INSTANCE = new MultiPointBuilder(); // // public static MultiPointBuilder getInstance() { // return I...
import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; import java.util.ArrayList; import java.util.List; import org.junit.Test; import org.ugeojson.builder.geometry.MultiPointBuilder; import org.ugeojson.model.PositionDto; import org.ugeojson.model.geometry.MultiPointDto;
package org.ugeojson.builder.geometry; public class MultiPointBuilderShould { @Test public void build_multipoint() { MultiPointDto multiPoint = new MultiPointDto();
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/MultiPointBuilder.java // public class MultiPointBuilder extends GeometryBuilder<MultiPointDto> { // // private static final MultiPointBuilder INSTANCE = new MultiPointBuilder(); // // public static MultiPointBuilder getInstance() { // return I...
List<PositionDto> positions = new ArrayList<>();
mokszr/ultimate-geojson
ugeojson-builder/src/test/java/org/ugeojson/builder/geometry/MultiPointBuilderShould.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/MultiPointBuilder.java // public class MultiPointBuilder extends GeometryBuilder<MultiPointDto> { // // private static final MultiPointBuilder INSTANCE = new MultiPointBuilder(); // // public static MultiPointBuilder getInstance() { // return I...
import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; import java.util.ArrayList; import java.util.List; import org.junit.Test; import org.ugeojson.builder.geometry.MultiPointBuilder; import org.ugeojson.model.PositionDto; import org.ugeojson.model.geometry.MultiPointDto;
package org.ugeojson.builder.geometry; public class MultiPointBuilderShould { @Test public void build_multipoint() { MultiPointDto multiPoint = new MultiPointDto(); List<PositionDto> positions = new ArrayList<>(); positions.add(new PositionDto(32.123, 24.587)); positions.add(new PositionDto(36.1478, 29.3...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/MultiPointBuilder.java // public class MultiPointBuilder extends GeometryBuilder<MultiPointDto> { // // private static final MultiPointBuilder INSTANCE = new MultiPointBuilder(); // // public static MultiPointBuilder getInstance() { // return I...
String geometryGeoJSON = MultiPointBuilder.getInstance().toGeoJSON(multiPoint);
mokszr/ultimate-geojson
ugeojson-model/src/test/java/org/ugeojson/model/PositionDtoShould.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; import org.junit.Test; import org.ugeojson.model.PositionDto;
package org.ugeojson.model; public class PositionDtoShould { @Test public void copy_position(){
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
PositionDto position = new PositionDto(14.7,23.8);
mokszr/ultimate-geojson
ugeojson-parser/src/main/java/org/ugeojson/parser/util/BoundingBoxParser.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/BoundingBoxDto.java // public class BoundingBoxDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private PositionDto southWestCorner; // private PositionDto northEastCorner; // // public PositionDto getSouthWestCorn...
import org.ugeojson.model.BoundingBoxDto; import org.ugeojson.model.PositionDto; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonElement; import com.google.gson.JsonObject;
package org.ugeojson.parser.util; /** * @author moksuzer * */ public class BoundingBoxParser { private static final int TWO_DIMENSIONAL_BBOX_LENGTH = 4; private BoundingBoxParser() { }
// Path: ugeojson-model/src/main/java/org/ugeojson/model/BoundingBoxDto.java // public class BoundingBoxDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private PositionDto southWestCorner; // private PositionDto northEastCorner; // // public PositionDto getSouthWestCorn...
public static BoundingBoxDto parseBbox(JsonObject asJsonObject, JsonDeserializationContext context) {
mokszr/ultimate-geojson
ugeojson-parser/src/main/java/org/ugeojson/parser/util/BoundingBoxParser.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/BoundingBoxDto.java // public class BoundingBoxDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private PositionDto southWestCorner; // private PositionDto northEastCorner; // // public PositionDto getSouthWestCorn...
import org.ugeojson.model.BoundingBoxDto; import org.ugeojson.model.PositionDto; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonElement; import com.google.gson.JsonObject;
package org.ugeojson.parser.util; /** * @author moksuzer * */ public class BoundingBoxParser { private static final int TWO_DIMENSIONAL_BBOX_LENGTH = 4; private BoundingBoxParser() { } public static BoundingBoxDto parseBbox(JsonObject asJsonObject, JsonDeserializationContext context) { BoundingBoxDto bbox...
// Path: ugeojson-model/src/main/java/org/ugeojson/model/BoundingBoxDto.java // public class BoundingBoxDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private PositionDto southWestCorner; // private PositionDto northEastCorner; // // public PositionDto getSouthWestCorn...
bboxDto.setSouthWestCorner(new PositionDto(bbox[0], bbox[1]));
mokszr/ultimate-geojson
ugeojson-model/src/main/java/org/ugeojson/model/geometry/PointDto.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.PositionDto;
package org.ugeojson.model.geometry; /** * @author moksuzer * */ public class PointDto extends GeometryDto { private static final long serialVersionUID = 1L;
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
private PositionDto position;
mokszr/ultimate-geojson
ugeojson-model/src/main/java/org/ugeojson/model/geometry/PointDto.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.PositionDto;
public void setLongitude(double longitude) { this.position.setLongitude(longitude); } public double getLatitude() { return this.position.getLatitude(); } public void setLatitude(double latitude) { this.position.setLatitude(latitude); } public void setElevation(double elevation) { this.position.setEle...
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
public GeoJSONObjectTypeEnum getGeoJSONObjectType() {
mokszr/ultimate-geojson
ugeojson-model/src/main/java/org/ugeojson/model/geometry/PolygonDto.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
import java.util.List; import org.ugeojson.model.GeoJSONObjectTypeEnum;
package org.ugeojson.model.geometry; /** * @author moksuzer * */ public class PolygonDto extends GeometryDto { private static final long serialVersionUID = 1L; private List<LineStringDto> linearRings; @Override
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
public GeoJSONObjectTypeEnum getGeoJSONObjectType() {
mokszr/ultimate-geojson
ugeojson-parser/src/main/java/org/ugeojson/parser/deserializer/FeatureDeserializer.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
import java.lang.reflect.Type; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.feature.FeatureDto; import org.ugeojson.model.geometry.GeometryDto; import org.ugeojson.parser.util.BoundingBoxParser; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializer; imp...
package org.ugeojson.parser.deserializer; /** * Deserializer for Feature * * @author moksuzer * */ public class FeatureDeserializer implements JsonDeserializer<FeatureDto> { @Override public FeatureDto deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) { FeatureDto dto = new...
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
GeoJSONObjectTypeEnum typeEnum = GeoJSONObjectTypeEnum.valueOf(typeOfGeometry);
mokszr/ultimate-geojson
ugeojson-parser/src/main/java/org/ugeojson/parser/deserializer/FeatureDeserializer.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
import java.lang.reflect.Type; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.feature.FeatureDto; import org.ugeojson.model.geometry.GeometryDto; import org.ugeojson.parser.util.BoundingBoxParser; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializer; imp...
package org.ugeojson.parser.deserializer; /** * Deserializer for Feature * * @author moksuzer * */ public class FeatureDeserializer implements JsonDeserializer<FeatureDto> { @Override public FeatureDto deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) { FeatureDto dto = new...
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
GeometryDto geometryDto = context.deserialize(geometryElement, typeEnum.getDtoClass());
mokszr/ultimate-geojson
ugeojson-parser/src/main/java/org/ugeojson/parser/deserializer/FeatureDeserializer.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
import java.lang.reflect.Type; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.feature.FeatureDto; import org.ugeojson.model.geometry.GeometryDto; import org.ugeojson.parser.util.BoundingBoxParser; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializer; imp...
package org.ugeojson.parser.deserializer; /** * Deserializer for Feature * * @author moksuzer * */ public class FeatureDeserializer implements JsonDeserializer<FeatureDto> { @Override public FeatureDto deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) { FeatureDto dto = new...
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
dto.setBbox(BoundingBoxParser.parseBbox(asJsonObject, context));
mokszr/ultimate-geojson
ugeojson-parser/src/main/java/org/ugeojson/parser/deserializer/LineStringDeserializer.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
import java.lang.reflect.Type; import java.util.ArrayList; import java.util.List; import org.ugeojson.model.PositionDto; import org.ugeojson.model.geometry.LineStringDto; import org.ugeojson.parser.util.BoundingBoxParser; import com.google.gson.JsonArray; import com.google.gson.JsonDeserializationContext; import com.go...
package org.ugeojson.parser.deserializer; /** * Deserializer for LineString * * @author moksuzer * */ public class LineStringDeserializer implements JsonDeserializer<LineStringDto> { @Override public LineStringDto deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) { LineStri...
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
List<PositionDto> positions = new ArrayList<>();
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/PointBuilder.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
import org.ugeojson.builder.common.BuilderConstants; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.PointDto;
package org.ugeojson.builder.geometry; /** * @author moksuzer * */ public class PointBuilder extends GeometryBuilder<PointDto> { private static final PointBuilder INSTANCE = new PointBuilder(); public static PointBuilder getInstance() { return INSTANCE; } private PointBuilder() { } /* * (non-Javadoc)...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
return BuilderConstants.NULL_VALUE;
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/PointBuilder.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
import org.ugeojson.builder.common.BuilderConstants; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.PointDto;
package org.ugeojson.builder.geometry; /** * @author moksuzer * */ public class PointBuilder extends GeometryBuilder<PointDto> { private static final PointBuilder INSTANCE = new PointBuilder(); public static PointBuilder getInstance() { return INSTANCE; } private PointBuilder() { } /* * (non-Javadoc)...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
buildTypePart(builder, GeoJSONObjectTypeEnum.Point);
mokszr/ultimate-geojson
ugeojson-model/src/main/java/org/ugeojson/model/geometry/MultiPointDto.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
import java.util.List; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.PositionDto;
package org.ugeojson.model.geometry; /** * @author moksuzer * */ public class MultiPointDto extends GeometryDto { private static final long serialVersionUID = 1L;
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
private List<PositionDto> positions;
mokszr/ultimate-geojson
ugeojson-model/src/main/java/org/ugeojson/model/geometry/MultiPointDto.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
import java.util.List; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.PositionDto;
package org.ugeojson.model.geometry; /** * @author moksuzer * */ public class MultiPointDto extends GeometryDto { private static final long serialVersionUID = 1L; private List<PositionDto> positions; public List<PositionDto> getPositions() { return positions; } public void setPositions(List<PositionDt...
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
public GeoJSONObjectTypeEnum getGeoJSONObjectType() {
mokszr/ultimate-geojson
ugeojson-parser/src/main/java/org/ugeojson/parser/deserializer/FeatureCollectionDeserializer.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/feature/FeatureCollectionDto.java // public class FeatureCollectionDto extends GeoJSONObjectDto { // // private static final long serialVersionUID = 1L; // // private List<FeatureDto> features; // // @Override // public GeoJSONObjectTypeEnum getGeoJSONOb...
import java.lang.reflect.Type; import java.util.ArrayList; import java.util.List; import org.ugeojson.model.feature.FeatureCollectionDto; import org.ugeojson.model.feature.FeatureDto; import org.ugeojson.parser.util.BoundingBoxParser; import com.google.gson.JsonArray; import com.google.gson.JsonDeserializationContext; ...
package org.ugeojson.parser.deserializer; /** * Deserializer for FeatureCollection * * @author moksuzer * */ public class FeatureCollectionDeserializer implements JsonDeserializer<FeatureCollectionDto> { @Override public FeatureCollectionDto deserialize(JsonElement json, Type typeOfT, JsonDeserializationCo...
// Path: ugeojson-model/src/main/java/org/ugeojson/model/feature/FeatureCollectionDto.java // public class FeatureCollectionDto extends GeoJSONObjectDto { // // private static final long serialVersionUID = 1L; // // private List<FeatureDto> features; // // @Override // public GeoJSONObjectTypeEnum getGeoJSONOb...
List<FeatureDto> features = new ArrayList<>();
mokszr/ultimate-geojson
ugeojson-parser/src/main/java/org/ugeojson/parser/deserializer/FeatureCollectionDeserializer.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/feature/FeatureCollectionDto.java // public class FeatureCollectionDto extends GeoJSONObjectDto { // // private static final long serialVersionUID = 1L; // // private List<FeatureDto> features; // // @Override // public GeoJSONObjectTypeEnum getGeoJSONOb...
import java.lang.reflect.Type; import java.util.ArrayList; import java.util.List; import org.ugeojson.model.feature.FeatureCollectionDto; import org.ugeojson.model.feature.FeatureDto; import org.ugeojson.parser.util.BoundingBoxParser; import com.google.gson.JsonArray; import com.google.gson.JsonDeserializationContext; ...
package org.ugeojson.parser.deserializer; /** * Deserializer for FeatureCollection * * @author moksuzer * */ public class FeatureCollectionDeserializer implements JsonDeserializer<FeatureCollectionDto> { @Override public FeatureCollectionDto deserialize(JsonElement json, Type typeOfT, JsonDeserializationCo...
// Path: ugeojson-model/src/main/java/org/ugeojson/model/feature/FeatureCollectionDto.java // public class FeatureCollectionDto extends GeoJSONObjectDto { // // private static final long serialVersionUID = 1L; // // private List<FeatureDto> features; // // @Override // public GeoJSONObjectTypeEnum getGeoJSONOb...
dto.setBbox(BoundingBoxParser.parseBbox(asJsonObject, context));
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/PolygonBuilder.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
import java.util.List; import org.ugeojson.builder.common.BuilderConstants; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.LineStringDto; import org.ugeojson.model.geometry.PolygonDto;
package org.ugeojson.builder.geometry; /** * @author moksuzer * */ public class PolygonBuilder extends GeometryBuilder<PolygonDto> { private static final PolygonBuilder INSTANCE = new PolygonBuilder(); public static PolygonBuilder getInstance() { return INSTANCE; } private PolygonBuilder() { } /* * ...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
return BuilderConstants.NULL_VALUE;
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/PolygonBuilder.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
import java.util.List; import org.ugeojson.builder.common.BuilderConstants; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.LineStringDto; import org.ugeojson.model.geometry.PolygonDto;
package org.ugeojson.builder.geometry; /** * @author moksuzer * */ public class PolygonBuilder extends GeometryBuilder<PolygonDto> { private static final PolygonBuilder INSTANCE = new PolygonBuilder(); public static PolygonBuilder getInstance() { return INSTANCE; } private PolygonBuilder() { } /* * ...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
buildTypePart(builder, GeoJSONObjectTypeEnum.Polygon);
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/PolygonBuilder.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
import java.util.List; import org.ugeojson.builder.common.BuilderConstants; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.LineStringDto; import org.ugeojson.model.geometry.PolygonDto;
package org.ugeojson.builder.geometry; /** * @author moksuzer * */ public class PolygonBuilder extends GeometryBuilder<PolygonDto> { private static final PolygonBuilder INSTANCE = new PolygonBuilder(); public static PolygonBuilder getInstance() { return INSTANCE; } private PolygonBuilder() { } /* * ...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
List<LineStringDto> linearRings = polygon.getLinearRings();
mokszr/ultimate-geojson
ugeojson-model/src/main/java/org/ugeojson/model/geometry/LineStringDto.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
import java.util.ArrayList; import java.util.List; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.PositionDto;
package org.ugeojson.model.geometry; /** * @author moksuzer * */ public class LineStringDto extends GeometryDto { private static final long serialVersionUID = 1L;
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
private List<PositionDto> positions;
mokszr/ultimate-geojson
ugeojson-model/src/main/java/org/ugeojson/model/geometry/LineStringDto.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
import java.util.ArrayList; import java.util.List; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.PositionDto;
package org.ugeojson.model.geometry; /** * @author moksuzer * */ public class LineStringDto extends GeometryDto { private static final long serialVersionUID = 1L; private List<PositionDto> positions; public LineStringDto(){ } public LineStringDto(List<PositionDto> positions){ this.positions = new Arra...
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
public GeoJSONObjectTypeEnum getGeoJSONObjectType() {
mokszr/ultimate-geojson
ugeojson-model/src/main/java/org/ugeojson/model/feature/FeatureCollectionDto.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectDto.java // public abstract class GeoJSONObjectDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private BoundingBoxDto bbox; // // public abstract GeoJSONObjectTypeEnum getGeoJSONObjectType(); // //...
import java.util.List; import org.ugeojson.model.GeoJSONObjectDto; import org.ugeojson.model.GeoJSONObjectTypeEnum;
package org.ugeojson.model.feature; /** * @author moksuzer * */ public class FeatureCollectionDto extends GeoJSONObjectDto { private static final long serialVersionUID = 1L; private List<FeatureDto> features; @Override
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectDto.java // public abstract class GeoJSONObjectDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private BoundingBoxDto bbox; // // public abstract GeoJSONObjectTypeEnum getGeoJSONObjectType(); // //...
public GeoJSONObjectTypeEnum getGeoJSONObjectType() {
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/PositionBuilder.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
import org.ugeojson.builder.common.BuilderConstants; import org.ugeojson.builder.exception.InvalidPositionDtoException; import org.ugeojson.model.PositionDto;
package org.ugeojson.builder.geometry; /** * @author moksuzer * */ public class PositionBuilder { private static final int MINIMUM_POSITION_DIMENSION = 2; private static final PositionBuilder INSTANCE = new PositionBuilder(); public static PositionBuilder getInstance(){ return INSTANCE; } private Pos...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
public String position(PositionDto position) {
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/PositionBuilder.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
import org.ugeojson.builder.common.BuilderConstants; import org.ugeojson.builder.exception.InvalidPositionDtoException; import org.ugeojson.model.PositionDto;
package org.ugeojson.builder.geometry; /** * @author moksuzer * */ public class PositionBuilder { private static final int MINIMUM_POSITION_DIMENSION = 2; private static final PositionBuilder INSTANCE = new PositionBuilder(); public static PositionBuilder getInstance(){ return INSTANCE; } private Pos...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
throw new InvalidPositionDtoException(position);
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/PositionBuilder.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
import org.ugeojson.builder.common.BuilderConstants; import org.ugeojson.builder.exception.InvalidPositionDtoException; import org.ugeojson.model.PositionDto;
package org.ugeojson.builder.geometry; /** * @author moksuzer * */ public class PositionBuilder { private static final int MINIMUM_POSITION_DIMENSION = 2; private static final PositionBuilder INSTANCE = new PositionBuilder(); public static PositionBuilder getInstance(){ return INSTANCE; } private Pos...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
StringBuilder builder = new StringBuilder(BuilderConstants.OPEN_BRACKET);
mokszr/ultimate-geojson
ugeojson-model/src/main/java/org/ugeojson/model/geometry/MultiPolygonDto.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
import java.util.List; import org.ugeojson.model.GeoJSONObjectTypeEnum;
package org.ugeojson.model.geometry; /** * @author moksuzer * */ public class MultiPolygonDto extends GeometryDto { private static final long serialVersionUID = 1L; private List<PolygonDto> polygons; public List<PolygonDto> getPolygons() { return polygons; } public void setPolygons(List<PolygonDto> pol...
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
public GeoJSONObjectTypeEnum getGeoJSONObjectType() {
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/GeometryCollectionBuilder.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
import java.util.List; import org.ugeojson.builder.common.BuilderConstants; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.GeometryCollectionDto; import org.ugeojson.model.geometry.GeometryDto;
package org.ugeojson.builder.geometry; /** * @author moksuzer * */ public class GeometryCollectionBuilder extends GeometryBuilder<GeometryCollectionDto> { private static final GeometryCollectionBuilder INSTANCE = new GeometryCollectionBuilder(); public static GeometryCollectionBuilder getInstance() { return...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
return BuilderConstants.NULL_VALUE;
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/GeometryCollectionBuilder.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
import java.util.List; import org.ugeojson.builder.common.BuilderConstants; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.GeometryCollectionDto; import org.ugeojson.model.geometry.GeometryDto;
package org.ugeojson.builder.geometry; /** * @author moksuzer * */ public class GeometryCollectionBuilder extends GeometryBuilder<GeometryCollectionDto> { private static final GeometryCollectionBuilder INSTANCE = new GeometryCollectionBuilder(); public static GeometryCollectionBuilder getInstance() { return...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
buildTypePart(builder, GeoJSONObjectTypeEnum.GeometryCollection);
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/GeometryCollectionBuilder.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
import java.util.List; import org.ugeojson.builder.common.BuilderConstants; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.GeometryCollectionDto; import org.ugeojson.model.geometry.GeometryDto;
package org.ugeojson.builder.geometry; /** * @author moksuzer * */ public class GeometryCollectionBuilder extends GeometryBuilder<GeometryCollectionDto> { private static final GeometryCollectionBuilder INSTANCE = new GeometryCollectionBuilder(); public static GeometryCollectionBuilder getInstance() { return...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
List<GeometryDto> geometries = geometryCollection.getGeometries();
mokszr/ultimate-geojson
ugeojson-parser/src/test/java/org/ugeojson/parser/deserializer/MultiPointDeserializerShould.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; import org.junit.Test; import org.ugeojson.model.PositionDto; import org.ugeojson.model.geometry.MultiPointDto; import org.ugeojson.parser.deserializer.MultiPointDeserializer; import org.ugeojson.parser.deserializer.PositionDese...
package org.ugeojson.parser.deserializer; public class MultiPointDeserializerShould { @Test public void deserialize_linestring(){ GsonBuilder gsonBuilder = new GsonBuilder();
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
gsonBuilder.registerTypeAdapter(PositionDto.class, new PositionDeserializer());
mokszr/ultimate-geojson
ugeojson-parser/src/test/java/org/ugeojson/parser/deserializer/MultiPointDeserializerShould.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; import org.junit.Test; import org.ugeojson.model.PositionDto; import org.ugeojson.model.geometry.MultiPointDto; import org.ugeojson.parser.deserializer.MultiPointDeserializer; import org.ugeojson.parser.deserializer.PositionDese...
package org.ugeojson.parser.deserializer; public class MultiPointDeserializerShould { @Test public void deserialize_linestring(){ GsonBuilder gsonBuilder = new GsonBuilder();
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
gsonBuilder.registerTypeAdapter(PositionDto.class, new PositionDeserializer());
mokszr/ultimate-geojson
ugeojson-parser/src/test/java/org/ugeojson/parser/deserializer/MultiPointDeserializerShould.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; import org.junit.Test; import org.ugeojson.model.PositionDto; import org.ugeojson.model.geometry.MultiPointDto; import org.ugeojson.parser.deserializer.MultiPointDeserializer; import org.ugeojson.parser.deserializer.PositionDese...
package org.ugeojson.parser.deserializer; public class MultiPointDeserializerShould { @Test public void deserialize_linestring(){ GsonBuilder gsonBuilder = new GsonBuilder(); gsonBuilder.registerTypeAdapter(PositionDto.class, new PositionDeserializer());
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
gsonBuilder.registerTypeAdapter(MultiPointDto.class, new MultiPointDeserializer());
mokszr/ultimate-geojson
ugeojson-parser/src/test/java/org/ugeojson/parser/deserializer/MultiPointDeserializerShould.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; import org.junit.Test; import org.ugeojson.model.PositionDto; import org.ugeojson.model.geometry.MultiPointDto; import org.ugeojson.parser.deserializer.MultiPointDeserializer; import org.ugeojson.parser.deserializer.PositionDese...
package org.ugeojson.parser.deserializer; public class MultiPointDeserializerShould { @Test public void deserialize_linestring(){ GsonBuilder gsonBuilder = new GsonBuilder(); gsonBuilder.registerTypeAdapter(PositionDto.class, new PositionDeserializer());
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
gsonBuilder.registerTypeAdapter(MultiPointDto.class, new MultiPointDeserializer());
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/common/GeoJSONBuilder.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/BoundingBoxDto.java // public class BoundingBoxDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private PositionDto southWestCorner; // private PositionDto northEastCorner; // // public PositionDto getSouthWestCorn...
import org.ugeojson.model.BoundingBoxDto; import org.ugeojson.model.GeoJSONObjectDto; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.PositionDto;
package org.ugeojson.builder.common; /** * @author moksuzer * */ public abstract class GeoJSONBuilder<T extends GeoJSONObjectDto> { /** * Convert geojsonDto object to GeoJSON geometry string. * @param geoJSONDto GeoJSONObjectDto object to be converted to GeoJSON * @return */ public abstract String toGe...
// Path: ugeojson-model/src/main/java/org/ugeojson/model/BoundingBoxDto.java // public class BoundingBoxDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private PositionDto southWestCorner; // private PositionDto northEastCorner; // // public PositionDto getSouthWestCorn...
protected void buildTypePart(StringBuilder builder, GeoJSONObjectTypeEnum type) {
mokszr/ultimate-geojson
ugeojson-model/src/main/java/org/ugeojson/model/feature/FeatureDto.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectDto.java // public abstract class GeoJSONObjectDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private BoundingBoxDto bbox; // // public abstract GeoJSONObjectTypeEnum getGeoJSONObjectType(); // //...
import org.ugeojson.model.GeoJSONObjectDto; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.GeometryDto;
package org.ugeojson.model.feature; /** * @author moksuzer * */ public class FeatureDto extends GeoJSONObjectDto { private static final long serialVersionUID = 1L;
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectDto.java // public abstract class GeoJSONObjectDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private BoundingBoxDto bbox; // // public abstract GeoJSONObjectTypeEnum getGeoJSONObjectType(); // //...
private GeometryDto geometry;
mokszr/ultimate-geojson
ugeojson-model/src/main/java/org/ugeojson/model/feature/FeatureDto.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectDto.java // public abstract class GeoJSONObjectDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private BoundingBoxDto bbox; // // public abstract GeoJSONObjectTypeEnum getGeoJSONObjectType(); // //...
import org.ugeojson.model.GeoJSONObjectDto; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.GeometryDto;
package org.ugeojson.model.feature; /** * @author moksuzer * */ public class FeatureDto extends GeoJSONObjectDto { private static final long serialVersionUID = 1L; private GeometryDto geometry; private String properties; private String id; @Override
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectDto.java // public abstract class GeoJSONObjectDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private BoundingBoxDto bbox; // // public abstract GeoJSONObjectTypeEnum getGeoJSONObjectType(); // //...
public GeoJSONObjectTypeEnum getGeoJSONObjectType() {
mokszr/ultimate-geojson
ugeojson-parser/src/test/java/org/ugeojson/parser/deserializer/PositionDeserializerShould.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; import java.lang.reflect.Type; import java.util.List; import org.junit.Test; import org.ugeojson.model.PositionDto; import org.ugeojson.parser.deserializer.PositionDeserializer; import com.google.gson.Gson; import com.google.gso...
package org.ugeojson.parser.deserializer; public class PositionDeserializerShould { @Test public void deserialize_position(){ GsonBuilder gsonBuilder = new GsonBuilder();
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
gsonBuilder.registerTypeAdapter(PositionDto.class, new PositionDeserializer());
mokszr/ultimate-geojson
ugeojson-parser/src/test/java/org/ugeojson/parser/deserializer/PositionDeserializerShould.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; import java.lang.reflect.Type; import java.util.List; import org.junit.Test; import org.ugeojson.model.PositionDto; import org.ugeojson.parser.deserializer.PositionDeserializer; import com.google.gson.Gson; import com.google.gso...
package org.ugeojson.parser.deserializer; public class PositionDeserializerShould { @Test public void deserialize_position(){ GsonBuilder gsonBuilder = new GsonBuilder();
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
gsonBuilder.registerTypeAdapter(PositionDto.class, new PositionDeserializer());
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/LineStringBuilder.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
import org.ugeojson.builder.common.BuilderConstants; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.LineStringDto;
package org.ugeojson.builder.geometry; /** * @author moksuzer * */ public class LineStringBuilder extends GeometryBuilder<LineStringDto> { private static final LineStringBuilder INSTANCE = new LineStringBuilder(); public static LineStringBuilder getInstance() { return INSTANCE; } private LineStringBuilder...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
return BuilderConstants.NULL_VALUE;
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/LineStringBuilder.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
import org.ugeojson.builder.common.BuilderConstants; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.LineStringDto;
package org.ugeojson.builder.geometry; /** * @author moksuzer * */ public class LineStringBuilder extends GeometryBuilder<LineStringDto> { private static final LineStringBuilder INSTANCE = new LineStringBuilder(); public static LineStringBuilder getInstance() { return INSTANCE; } private LineStringBuilder...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
buildTypePart(builder, GeoJSONObjectTypeEnum.LineString);
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/exception/InvalidPolygonDtoException.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/geometry/PolygonDto.java // public class PolygonDto extends GeometryDto { // // private static final long serialVersionUID = 1L; // // private List<LineStringDto> linearRings; // // @Override // public GeoJSONObjectTypeEnum getGeoJSONObjectType() { // re...
import org.ugeojson.model.geometry.PolygonDto;
package org.ugeojson.builder.exception; public class InvalidPolygonDtoException extends RuntimeException { private static final long serialVersionUID = 1L;
// Path: ugeojson-model/src/main/java/org/ugeojson/model/geometry/PolygonDto.java // public class PolygonDto extends GeometryDto { // // private static final long serialVersionUID = 1L; // // private List<LineStringDto> linearRings; // // @Override // public GeoJSONObjectTypeEnum getGeoJSONObjectType() { // re...
private final PolygonDto polygon;
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/MultiLineStringBuilder.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
import java.util.List; import org.ugeojson.builder.common.BuilderConstants; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.LineStringDto; import org.ugeojson.model.geometry.MultiLineStringDto;
package org.ugeojson.builder.geometry; /** * @author moksuzer * */ public class MultiLineStringBuilder extends GeometryBuilder<MultiLineStringDto> { private static final MultiLineStringBuilder INSTANCE = new MultiLineStringBuilder(); public static MultiLineStringBuilder getInstance() { return INSTANCE; } ...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
return BuilderConstants.NULL_VALUE;
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/MultiLineStringBuilder.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
import java.util.List; import org.ugeojson.builder.common.BuilderConstants; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.LineStringDto; import org.ugeojson.model.geometry.MultiLineStringDto;
package org.ugeojson.builder.geometry; /** * @author moksuzer * */ public class MultiLineStringBuilder extends GeometryBuilder<MultiLineStringDto> { private static final MultiLineStringBuilder INSTANCE = new MultiLineStringBuilder(); public static MultiLineStringBuilder getInstance() { return INSTANCE; } ...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
buildTypePart(builder, GeoJSONObjectTypeEnum.MultiLineString);
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/MultiLineStringBuilder.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
import java.util.List; import org.ugeojson.builder.common.BuilderConstants; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.LineStringDto; import org.ugeojson.model.geometry.MultiLineStringDto;
package org.ugeojson.builder.geometry; /** * @author moksuzer * */ public class MultiLineStringBuilder extends GeometryBuilder<MultiLineStringDto> { private static final MultiLineStringBuilder INSTANCE = new MultiLineStringBuilder(); public static MultiLineStringBuilder getInstance() { return INSTANCE; } ...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/common/BuilderConstants.java // public interface BuilderConstants { // // public static final String OPEN_BRACKET = "["; // public static final String CLOSE_BRACKET = "]"; // public static final String OPEN_CURLY_BRACE = "{"; // public static final Strin...
List<LineStringDto> lines = multiLineString.getLines();
mokszr/ultimate-geojson
ugeojson-builder/src/test/java/org/ugeojson/builder/geometry/LineStringBuilderShould.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/LineStringBuilder.java // public class LineStringBuilder extends GeometryBuilder<LineStringDto> { // // private static final LineStringBuilder INSTANCE = new LineStringBuilder(); // // public static LineStringBuilder getInstance() { // return I...
import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; import java.util.ArrayList; import java.util.List; import org.junit.Test; import org.ugeojson.builder.geometry.LineStringBuilder; import org.ugeojson.model.PositionDto; import org.ugeojson.model.geometry.LineStringDto;
package org.ugeojson.builder.geometry; public class LineStringBuilderShould { @Test public void build_linestring() {
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/LineStringBuilder.java // public class LineStringBuilder extends GeometryBuilder<LineStringDto> { // // private static final LineStringBuilder INSTANCE = new LineStringBuilder(); // // public static LineStringBuilder getInstance() { // return I...
LineStringDto lineString = new LineStringDto();
mokszr/ultimate-geojson
ugeojson-builder/src/test/java/org/ugeojson/builder/geometry/LineStringBuilderShould.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/LineStringBuilder.java // public class LineStringBuilder extends GeometryBuilder<LineStringDto> { // // private static final LineStringBuilder INSTANCE = new LineStringBuilder(); // // public static LineStringBuilder getInstance() { // return I...
import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; import java.util.ArrayList; import java.util.List; import org.junit.Test; import org.ugeojson.builder.geometry.LineStringBuilder; import org.ugeojson.model.PositionDto; import org.ugeojson.model.geometry.LineStringDto;
package org.ugeojson.builder.geometry; public class LineStringBuilderShould { @Test public void build_linestring() { LineStringDto lineString = new LineStringDto();
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/LineStringBuilder.java // public class LineStringBuilder extends GeometryBuilder<LineStringDto> { // // private static final LineStringBuilder INSTANCE = new LineStringBuilder(); // // public static LineStringBuilder getInstance() { // return I...
List<PositionDto> positions = new ArrayList<>();
mokszr/ultimate-geojson
ugeojson-builder/src/test/java/org/ugeojson/builder/geometry/LineStringBuilderShould.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/LineStringBuilder.java // public class LineStringBuilder extends GeometryBuilder<LineStringDto> { // // private static final LineStringBuilder INSTANCE = new LineStringBuilder(); // // public static LineStringBuilder getInstance() { // return I...
import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; import java.util.ArrayList; import java.util.List; import org.junit.Test; import org.ugeojson.builder.geometry.LineStringBuilder; import org.ugeojson.model.PositionDto; import org.ugeojson.model.geometry.LineStringDto;
package org.ugeojson.builder.geometry; public class LineStringBuilderShould { @Test public void build_linestring() { LineStringDto lineString = new LineStringDto(); List<PositionDto> positions = new ArrayList<>(); positions.add(new PositionDto(32.123,24.587)); positions.add(new PositionDto(36.1478,29.364...
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/LineStringBuilder.java // public class LineStringBuilder extends GeometryBuilder<LineStringDto> { // // private static final LineStringBuilder INSTANCE = new LineStringBuilder(); // // public static LineStringBuilder getInstance() { // return I...
String geometryGeoJSON = LineStringBuilder.getInstance().toGeoJSON(lineString);
mokszr/ultimate-geojson
ugeojson-model/src/main/java/org/ugeojson/model/geometry/MultiLineStringDto.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
import java.util.List; import org.ugeojson.model.GeoJSONObjectTypeEnum;
package org.ugeojson.model.geometry; /** * @author moksuzer * */ public class MultiLineStringDto extends GeometryDto { private static final long serialVersionUID = 1L; private List<LineStringDto> lines; public List<LineStringDto> getLines() { return lines; } public void setLines(List<LineStringDto> lin...
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
public GeoJSONObjectTypeEnum getGeoJSONObjectType() {
mokszr/ultimate-geojson
ugeojson-builder/src/test/java/org/ugeojson/builder/geometry/PointBuilderShould.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/PointBuilder.java // public class PointBuilder extends GeometryBuilder<PointDto> { // // private static final PointBuilder INSTANCE = new PointBuilder(); // // public static PointBuilder getInstance() { // return INSTANCE; // } // // private...
import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; import org.junit.Test; import org.ugeojson.builder.geometry.PointBuilder; import org.ugeojson.model.geometry.PointDto;
package org.ugeojson.builder.geometry; public class PointBuilderShould { @Test public void build_point_to_geometry_geojson(){
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/PointBuilder.java // public class PointBuilder extends GeometryBuilder<PointDto> { // // private static final PointBuilder INSTANCE = new PointBuilder(); // // public static PointBuilder getInstance() { // return INSTANCE; // } // // private...
PointDto point = new PointDto(101.2471,37.2368);
mokszr/ultimate-geojson
ugeojson-builder/src/test/java/org/ugeojson/builder/geometry/PointBuilderShould.java
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/PointBuilder.java // public class PointBuilder extends GeometryBuilder<PointDto> { // // private static final PointBuilder INSTANCE = new PointBuilder(); // // public static PointBuilder getInstance() { // return INSTANCE; // } // // private...
import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; import org.junit.Test; import org.ugeojson.builder.geometry.PointBuilder; import org.ugeojson.model.geometry.PointDto;
package org.ugeojson.builder.geometry; public class PointBuilderShould { @Test public void build_point_to_geometry_geojson(){ PointDto point = new PointDto(101.2471,37.2368);
// Path: ugeojson-builder/src/main/java/org/ugeojson/builder/geometry/PointBuilder.java // public class PointBuilder extends GeometryBuilder<PointDto> { // // private static final PointBuilder INSTANCE = new PointBuilder(); // // public static PointBuilder getInstance() { // return INSTANCE; // } // // private...
String geometryGeoJSON = PointBuilder.getInstance().toGeoJSON(point);
mokszr/ultimate-geojson
ugeojson-parser/src/main/java/org/ugeojson/parser/deserializer/GeometryCollectionDeserializer.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
import java.lang.reflect.Type; import java.util.ArrayList; import java.util.List; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.GeometryCollectionDto; import org.ugeojson.model.geometry.GeometryDto; import org.ugeojson.parser.util.BoundingBoxParser; import com.google.gson.JsonArray...
package org.ugeojson.parser.deserializer; /** * Deserializer for GeometryCollection * * @author moksuzer * */ public class GeometryCollectionDeserializer implements JsonDeserializer<GeometryCollectionDto> { @Override public GeometryCollectionDto deserialize(JsonElement json, Type typeOfT, JsonDeserializati...
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
List<GeometryDto> geometries = new ArrayList<>();
mokszr/ultimate-geojson
ugeojson-parser/src/main/java/org/ugeojson/parser/deserializer/GeometryCollectionDeserializer.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
import java.lang.reflect.Type; import java.util.ArrayList; import java.util.List; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.GeometryCollectionDto; import org.ugeojson.model.geometry.GeometryDto; import org.ugeojson.parser.util.BoundingBoxParser; import com.google.gson.JsonArray...
package org.ugeojson.parser.deserializer; /** * Deserializer for GeometryCollection * * @author moksuzer * */ public class GeometryCollectionDeserializer implements JsonDeserializer<GeometryCollectionDto> { @Override public GeometryCollectionDto deserialize(JsonElement json, Type typeOfT, JsonDeserializati...
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
GeoJSONObjectTypeEnum typeEnum = GeoJSONObjectTypeEnum.valueOf(typeOfGeometry);
mokszr/ultimate-geojson
ugeojson-parser/src/main/java/org/ugeojson/parser/deserializer/GeometryCollectionDeserializer.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
import java.lang.reflect.Type; import java.util.ArrayList; import java.util.List; import org.ugeojson.model.GeoJSONObjectTypeEnum; import org.ugeojson.model.geometry.GeometryCollectionDto; import org.ugeojson.model.geometry.GeometryDto; import org.ugeojson.parser.util.BoundingBoxParser; import com.google.gson.JsonArray...
package org.ugeojson.parser.deserializer; /** * Deserializer for GeometryCollection * * @author moksuzer * */ public class GeometryCollectionDeserializer implements JsonDeserializer<GeometryCollectionDto> { @Override public GeometryCollectionDto deserialize(JsonElement json, Type typeOfT, JsonDeserializati...
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
dto.setBbox(BoundingBoxParser.parseBbox(asJsonObject, context));
mokszr/ultimate-geojson
ugeojson-model/src/main/java/org/ugeojson/model/geometry/GeometryCollectionDto.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
import java.util.List; import org.ugeojson.model.GeoJSONObjectTypeEnum;
package org.ugeojson.model.geometry; /** * @author moksuzer * */ public class GeometryCollectionDto extends GeometryDto { private static final long serialVersionUID = 1L; private List<GeometryDto> geometries; public List<GeometryDto> getGeometries() { return geometries; } public void setGeometries(List...
// Path: ugeojson-model/src/main/java/org/ugeojson/model/GeoJSONObjectTypeEnum.java // public enum GeoJSONObjectTypeEnum { // // Point(PointDto.class), MultiPoint(MultiPointDto.class), LineString(LineStringDto.class), MultiLineString( // MultiLineStringDto.class), Polygon(PolygonDto.class), MultiPolygon( // M...
public GeoJSONObjectTypeEnum getGeoJSONObjectType() {
mokszr/ultimate-geojson
ugeojson-builder/src/main/java/org/ugeojson/builder/exception/InvalidPositionDtoException.java
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
import org.ugeojson.model.PositionDto;
package org.ugeojson.builder.exception; public class InvalidPositionDtoException extends RuntimeException { private static final long serialVersionUID = 1L;
// Path: ugeojson-model/src/main/java/org/ugeojson/model/PositionDto.java // public class PositionDto implements Serializable { // // private static final long serialVersionUID = 1L; // // private double[] numbers; // // /** // * This constructor initializes numbers field to hold two double numbers. Do // * n...
public InvalidPositionDtoException(PositionDto position) {
jglrxavpok/JLSL
src/org/jglrxavpok/jlsl/java/JavaEncoder.java
// Path: src/org/jglrxavpok/jlsl/fragments/MethodCallFragment.java // public static enum InvokeTypes // { // STATIC, VIRTUAL, SPECIAL // }
import java.io.*; import java.util.*; import org.jglrxavpok.jlsl.*; import org.jglrxavpok.jlsl.fragments.*; import org.jglrxavpok.jlsl.fragments.MethodCallFragment.InvokeTypes;
else previousType = toJava(currentMethod.varName2TypeMap.get(withoutPreviousCast)); if(previousType.equals(toJava(fragment.to))) { if(DEBUG) System.out.println("GLSLEncoder > Cancelling cast for " + toCast); } else stack.push("(" + toJava(fragment.to) + ")" + toCast); } private void handleModFragm...
// Path: src/org/jglrxavpok/jlsl/fragments/MethodCallFragment.java // public static enum InvokeTypes // { // STATIC, VIRTUAL, SPECIAL // } // Path: src/org/jglrxavpok/jlsl/java/JavaEncoder.java import java.io.*; import java.util.*; import org.jglrxavpok.jlsl.*; import org.jglrxavpok.jlsl.fragments.*; import org.jglr...
if(fragment.invokeType == InvokeTypes.SPECIAL && currentMethod.name.equals("<init>") && fragment.methodOwner.equals(currentClass.superclass))
jglrxavpok/JLSL
src/org/jglrxavpok/jlsl/glsl/GLSLEncoder.java
// Path: src/org/jglrxavpok/jlsl/fragments/MethodCallFragment.java // public static enum InvokeTypes // { // STATIC, VIRTUAL, SPECIAL // }
import java.io.*; import java.util.*; import org.jglrxavpok.jlsl.*; import org.jglrxavpok.jlsl.fragments.*; import org.jglrxavpok.jlsl.fragments.MethodCallFragment.InvokeTypes; import org.jglrxavpok.jlsl.glsl.GLSL.Attribute; import org.jglrxavpok.jlsl.glsl.GLSL.Extensions; import org.jglrxavpok.jlsl.glsl.GLSL.In; impor...
else stack.push("(" + toGLSL(fragment.to) + ")" + toCast); } private void handleModFragment(ModFragment fragment, List<CodeFragment> in, int index, PrintWriter out) { String a = stack.pop(); String b = stack.pop(); stack.push("mod(" + b + ", " + a + ")"); } private void handleMethodCallFragment(Method...
// Path: src/org/jglrxavpok/jlsl/fragments/MethodCallFragment.java // public static enum InvokeTypes // { // STATIC, VIRTUAL, SPECIAL // } // Path: src/org/jglrxavpok/jlsl/glsl/GLSLEncoder.java import java.io.*; import java.util.*; import org.jglrxavpok.jlsl.*; import org.jglrxavpok.jlsl.fragments.*; import org.jglr...
if(fragment.invokeType == InvokeTypes.SPECIAL && currentMethod.name.equals("<init>") && fragment.methodOwner.equals(currentClass.superclass))
jglrxavpok/JLSL
src/org/jglrxavpok/jlsl/BytecodeDecoder.java
// Path: src/org/jglrxavpok/jlsl/fragments/MethodCallFragment.java // public static enum InvokeTypes // { // STATIC, VIRTUAL, SPECIAL // }
import static org.objectweb.asm.Opcodes.*; import java.io.*; import java.util.*; import org.jglrxavpok.jlsl.fragments.*; import org.jglrxavpok.jlsl.fragments.MethodCallFragment.InvokeTypes; import org.objectweb.asm.*; import org.objectweb.asm.tree.*; import org.objectweb.asm.util.*;
NewInstanceFragment newFrag = new NewInstanceFragment(); newFrag.type = operand.replace("/", "."); out.add(newFrag); } } else if(ainsnNode.getType() == AbstractInsnNode.MULTIANEWARRAY_INSN) { MultiANewArrayInsnNode multiArrayNode = (MultiANewArrayInsnNode)ainsnNode; NewMultiArrayFrag...
// Path: src/org/jglrxavpok/jlsl/fragments/MethodCallFragment.java // public static enum InvokeTypes // { // STATIC, VIRTUAL, SPECIAL // } // Path: src/org/jglrxavpok/jlsl/BytecodeDecoder.java import static org.objectweb.asm.Opcodes.*; import java.io.*; import java.util.*; import org.jglrxavpok.jlsl.fragments.*; imp...
methodFragment.invokeType = InvokeTypes.STATIC;
michelelacorte/FlickLauncher
src/com/android/launcher3/wallpaperpicker/glrenderer/BasicTexture.java
// Path: src/com/android/launcher3/wallpaperpicker/common/Utils.java // public class Utils { // private static final String TAG = "Utils"; // // // Throws AssertionError if the input is false. // public static void assertTrue(boolean cond) { // if (!cond) { // throw new AssertionError()...
import android.util.Log; import com.android.launcher3.wallpaperpicker.common.Utils; import java.util.WeakHashMap;
protected GLCanvas mCanvasRef = null; private static WeakHashMap<BasicTexture, Object> sAllTextures = new WeakHashMap<>(); private static ThreadLocal<Class<BasicTexture>> sInFinalizer = new ThreadLocal<>(); protected BasicTexture(GLCanvas canvas, int id, int state) { setAssociatedC...
// Path: src/com/android/launcher3/wallpaperpicker/common/Utils.java // public class Utils { // private static final String TAG = "Utils"; // // // Throws AssertionError if the input is false. // public static void assertTrue(boolean cond) { // if (!cond) { // throw new AssertionError()...
mTextureWidth = width > 0 ? Utils.nextPowerOf2(width) : 0;
michelelacorte/FlickLauncher
src/com/android/launcher3/wallpaperpicker/glrenderer/BitmapTexture.java
// Path: src/com/android/launcher3/wallpaperpicker/common/Utils.java // public class Utils { // private static final String TAG = "Utils"; // // // Throws AssertionError if the input is false. // public static void assertTrue(boolean cond) { // if (!cond) { // throw new AssertionError()...
import android.graphics.Bitmap; import com.android.launcher3.wallpaperpicker.common.Utils;
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
// Path: src/com/android/launcher3/wallpaperpicker/common/Utils.java // public class Utils { // private static final String TAG = "Utils"; // // // Throws AssertionError if the input is false. // public static void assertTrue(boolean cond) { // if (!cond) { // throw new AssertionError()...
Utils.assertTrue(bitmap != null && !bitmap.isRecycled());
michelelacorte/FlickLauncher
src/com/android/launcher3/wallpaperpicker/glrenderer/UploadedTexture.java
// Path: src/com/android/launcher3/wallpaperpicker/common/Utils.java // public class Utils { // private static final String TAG = "Utils"; // // // Throws AssertionError if the input is false. // public static void assertTrue(boolean cond) { // if (!cond) { // throw new AssertionError()...
import android.graphics.Bitmap; import android.graphics.Bitmap.Config; import android.opengl.GLUtils; import android.util.Pair; import com.android.launcher3.wallpaperpicker.common.Utils; import java.util.HashMap;
protected UploadedTexture() { super(null, 0, STATE_UNLOADED); } private static Bitmap getBorderLine(boolean vertical, Config config, int length) { BorderKey key = new BorderKey(config, vertical, length); Bitmap bitmap = sBorderLines.get(key); if (bitmap == null) { ...
// Path: src/com/android/launcher3/wallpaperpicker/common/Utils.java // public class Utils { // private static final String TAG = "Utils"; // // // Throws AssertionError if the input is false. // public static void assertTrue(boolean cond) { // if (!cond) { // throw new AssertionError()...
Utils.assertTrue(mBitmap != null);
michelelacorte/FlickLauncher
src/com/android/launcher3/wallpaperpicker/SavedWallpaperImages.java
// Path: src/com/android/launcher3/wallpaperpicker/tileinfo/FileWallpaperInfo.java // public class FileWallpaperInfo extends DrawableThumbWallpaperInfo { // private static final String TAG = "FileWallpaperInfo"; // // private final File mFile; // // public FileWallpaperInfo(File target, Drawable thumb) { ...
import java.util.ArrayList; import java.util.List; import com.android.launcher3.wallpaperpicker.tileinfo.FileWallpaperInfo; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper...
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
// Path: src/com/android/launcher3/wallpaperpicker/tileinfo/FileWallpaperInfo.java // public class FileWallpaperInfo extends DrawableThumbWallpaperInfo { // private static final String TAG = "FileWallpaperInfo"; // // private final File mFile; // // public FileWallpaperInfo(File target, Drawable thumb) { ...
public static class SavedWallpaperInfo extends FileWallpaperInfo {
devhub-tud/Java-Gitolite-Manager
src/main/java/nl/tudelft/ewi/gitolite/parser/rules/InlineUserGroup.java
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
import com.google.common.collect.Lists; import lombok.Builder; import lombok.EqualsAndHashCode; import com.google.common.base.Joiner; import lombok.Singular; import nl.tudelft.ewi.gitolite.objects.Identifiable; import nl.tudelft.ewi.gitolite.objects.Identifier; import nl.tudelft.ewi.gitolite.util.RecursiveStreamingGrou...
package nl.tudelft.ewi.gitolite.parser.rules; /** * @author Jan-Willem Gmelig Meyling */ @Builder @EqualsAndHashCode(doNotUseGetters = true)
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
public class InlineUserGroup implements RecursiveStreamingGroup<GroupRule, Identifier>, Writable {
devhub-tud/Java-Gitolite-Manager
src/main/java/nl/tudelft/ewi/gitolite/parser/rules/InlineUserGroup.java
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
import com.google.common.collect.Lists; import lombok.Builder; import lombok.EqualsAndHashCode; import com.google.common.base.Joiner; import lombok.Singular; import nl.tudelft.ewi.gitolite.objects.Identifiable; import nl.tudelft.ewi.gitolite.objects.Identifier; import nl.tudelft.ewi.gitolite.util.RecursiveStreamingGrou...
package nl.tudelft.ewi.gitolite.parser.rules; /** * @author Jan-Willem Gmelig Meyling */ @Builder @EqualsAndHashCode(doNotUseGetters = true)
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
public class InlineUserGroup implements RecursiveStreamingGroup<GroupRule, Identifier>, Writable {
devhub-tud/Java-Gitolite-Manager
src/main/java/nl/tudelft/ewi/gitolite/parser/rules/InlineUserGroup.java
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
import com.google.common.collect.Lists; import lombok.Builder; import lombok.EqualsAndHashCode; import com.google.common.base.Joiner; import lombok.Singular; import nl.tudelft.ewi.gitolite.objects.Identifiable; import nl.tudelft.ewi.gitolite.objects.Identifier; import nl.tudelft.ewi.gitolite.util.RecursiveStreamingGrou...
@Override public boolean removeAll(Collection<?> c) { // Intended inclusive-OR return members.removeAll(c) | groups.removeAll(c); } @Override public boolean retainAll(Collection<?> c) { return members.retainAll(c) | groups.retainAll(c); } @Override public void clear() { groups.clear(); members.clea...
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
.map(Identifiable::getPattern)
devhub-tud/Java-Gitolite-Manager
src/main/java/nl/tudelft/ewi/gitolite/parser/rules/RepositoryRule.java
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
import com.google.common.collect.Lists; import lombok.Builder; import lombok.EqualsAndHashCode; import lombok.Singular; import lombok.SneakyThrows; import lombok.Value; import nl.tudelft.ewi.gitolite.objects.Identifiable; import nl.tudelft.ewi.gitolite.objects.Identifier; import java.io.IOException; import java.io.Stri...
package nl.tudelft.ewi.gitolite.parser.rules; /** * @author Jan-Willem Gmelig Meyling */ @Value @Builder @EqualsAndHashCode public class RepositoryRule implements Rule { /** * Regex pattern for the repositories. * Due to projects like gtk+, the + character is now considered a valid character for an ordinary ...
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
private final List<Identifiable> identifiables;
devhub-tud/Java-Gitolite-Manager
src/main/java/nl/tudelft/ewi/gitolite/parser/rules/RepositoryRule.java
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
import com.google.common.collect.Lists; import lombok.Builder; import lombok.EqualsAndHashCode; import lombok.Singular; import lombok.SneakyThrows; import lombok.Value; import nl.tudelft.ewi.gitolite.objects.Identifiable; import nl.tudelft.ewi.gitolite.objects.Identifier; import java.io.IOException; import java.io.Stri...
package nl.tudelft.ewi.gitolite.parser.rules; /** * @author Jan-Willem Gmelig Meyling */ @Value @Builder @EqualsAndHashCode public class RepositoryRule implements Rule { /** * Regex pattern for the repositories. * Due to projects like gtk+, the + character is now considered a valid character for an ordinary ...
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
this(Collections.singletonList(new Identifier(pattern)), Arrays.asList(rules), Collections.emptyList());
devhub-tud/Java-Gitolite-Manager
src/test/java/TestGroupRule.java
// Path: src/main/java/nl/tudelft/ewi/gitolite/parser/rules/GroupRule.java // @Data // @Builder // //@EqualsAndHashCode(doNotUseGetters = true) // public class GroupRule implements RecursiveAndPrototypeStreamingGroup<GroupRule, Identifier>, Rule, Identifiable { // // /** // * {@code @all} is a special group name th...
import nl.tudelft.ewi.gitolite.parser.rules.GroupRule; import nl.tudelft.ewi.gitolite.objects.Identifiable; import nl.tudelft.ewi.gitolite.objects.Identifier; import org.junit.Test; import java.io.IOException; import java.util.List; import java.util.stream.Collectors; import static org.junit.Assert.assertThat; import s...
/** * @author Jan-Willem Gmelig Meyling */ public class TestGroupRule { @Test public void test1() throws IOException {
// Path: src/main/java/nl/tudelft/ewi/gitolite/parser/rules/GroupRule.java // @Data // @Builder // //@EqualsAndHashCode(doNotUseGetters = true) // public class GroupRule implements RecursiveAndPrototypeStreamingGroup<GroupRule, Identifier>, Rule, Identifiable { // // /** // * {@code @all} is a special group name th...
Identifier foo = new Identifier("foo");
devhub-tud/Java-Gitolite-Manager
src/test/java/TestGroupRule.java
// Path: src/main/java/nl/tudelft/ewi/gitolite/parser/rules/GroupRule.java // @Data // @Builder // //@EqualsAndHashCode(doNotUseGetters = true) // public class GroupRule implements RecursiveAndPrototypeStreamingGroup<GroupRule, Identifier>, Rule, Identifiable { // // /** // * {@code @all} is a special group name th...
import nl.tudelft.ewi.gitolite.parser.rules.GroupRule; import nl.tudelft.ewi.gitolite.objects.Identifiable; import nl.tudelft.ewi.gitolite.objects.Identifier; import org.junit.Test; import java.io.IOException; import java.util.List; import java.util.stream.Collectors; import static org.junit.Assert.assertThat; import s...
/** * @author Jan-Willem Gmelig Meyling */ public class TestGroupRule { @Test public void test1() throws IOException { Identifier foo = new Identifier("foo"); Identifier bar = new Identifier("bar");
// Path: src/main/java/nl/tudelft/ewi/gitolite/parser/rules/GroupRule.java // @Data // @Builder // //@EqualsAndHashCode(doNotUseGetters = true) // public class GroupRule implements RecursiveAndPrototypeStreamingGroup<GroupRule, Identifier>, Rule, Identifiable { // // /** // * {@code @all} is a special group name th...
GroupRule test = GroupRule.builder()
devhub-tud/Java-Gitolite-Manager
src/main/java/nl/tudelft/ewi/gitolite/parser/rules/GroupRule.java
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
import com.google.common.base.Joiner; import com.google.common.base.Preconditions; import com.google.common.collect.Lists; import lombok.Builder; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Singular; import lombok.SneakyThrows; import nl.tudelft.ewi.gitolite.objects.Identifi...
package nl.tudelft.ewi.gitolite.parser.rules; /** * @author Jan-Willem Gmelig Meyling */ @Data @Builder //@EqualsAndHashCode(doNotUseGetters = true)
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
public class GroupRule implements RecursiveAndPrototypeStreamingGroup<GroupRule, Identifier>, Rule, Identifiable {
devhub-tud/Java-Gitolite-Manager
src/main/java/nl/tudelft/ewi/gitolite/parser/rules/GroupRule.java
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
import com.google.common.base.Joiner; import com.google.common.base.Preconditions; import com.google.common.collect.Lists; import lombok.Builder; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Singular; import lombok.SneakyThrows; import nl.tudelft.ewi.gitolite.objects.Identifi...
package nl.tudelft.ewi.gitolite.parser.rules; /** * @author Jan-Willem Gmelig Meyling */ @Data @Builder //@EqualsAndHashCode(doNotUseGetters = true)
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
public class GroupRule implements RecursiveAndPrototypeStreamingGroup<GroupRule, Identifier>, Rule, Identifiable {
devhub-tud/Java-Gitolite-Manager
src/main/java/nl/tudelft/ewi/gitolite/parser/rules/GroupRule.java
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
import com.google.common.base.Joiner; import com.google.common.base.Preconditions; import com.google.common.collect.Lists; import lombok.Builder; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Singular; import lombok.SneakyThrows; import nl.tudelft.ewi.gitolite.objects.Identifi...
package nl.tudelft.ewi.gitolite.parser.rules; /** * @author Jan-Willem Gmelig Meyling */ @Data @Builder //@EqualsAndHashCode(doNotUseGetters = true)
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
public class GroupRule implements RecursiveAndPrototypeStreamingGroup<GroupRule, Identifier>, Rule, Identifiable {
devhub-tud/Java-Gitolite-Manager
src/main/java/nl/tudelft/ewi/gitolite/parser/rules/AccessRule.java
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
import com.google.common.base.Preconditions; import com.google.common.base.Strings; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.SneakyThrows; import nl.tudelft.ewi.gitolite.objects.Identifiable; import nl.tudelft.ewi.gitolite.objects.Identifier; import nl.tudelft.ewi.gitolite.permission.Permiss...
package nl.tudelft.ewi.gitolite.parser.rules; /** * @author Jan-Willem Gmelig Meyling */ @EqualsAndHashCode public class AccessRule implements Writable { private final static String REFS_HEADS = "refs/heads/"; /** * If no refex is supplied, it defaults to refs/.*, for example in a rule like this: * * {@c...
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
private final Permission permission;
devhub-tud/Java-Gitolite-Manager
src/main/java/nl/tudelft/ewi/gitolite/parser/rules/AccessRule.java
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
import com.google.common.base.Preconditions; import com.google.common.base.Strings; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.SneakyThrows; import nl.tudelft.ewi.gitolite.objects.Identifiable; import nl.tudelft.ewi.gitolite.objects.Identifier; import nl.tudelft.ewi.gitolite.permission.Permiss...
package nl.tudelft.ewi.gitolite.parser.rules; /** * @author Jan-Willem Gmelig Meyling */ @EqualsAndHashCode public class AccessRule implements Writable { private final static String REFS_HEADS = "refs/heads/"; /** * If no refex is supplied, it defaults to refs/.*, for example in a rule like this: * * {@c...
// Path: src/main/java/nl/tudelft/ewi/gitolite/objects/Identifiable.java // public interface Identifiable extends Comparable<Identifiable>, Serializable { // // String getPattern(); // // @Override // default int compareTo(Identifiable o) { // return getPattern().compareTo(o.getPattern()); // } // // } // // ...
public AccessRule(final Permission permission, final Identifier... identifiable) {
Terasology/Cities
src/main/java/org/terasology/cities/bldg/gen/Turtle.java
// Path: src/main/java/org/terasology/cities/common/Edges.java // public final class Edges { // // private Edges() { // // no instances // } // // public static Vector2i getCorner(BlockAreac rc, Orientation o) { // // int dx = o.direction().x() + 1; // [0..2] // int dy = o.direct...
import org.joml.Vector2i; import org.joml.Vector2ic; import org.terasology.cities.common.Edges; import org.terasology.commonworld.Orientation; import org.terasology.engine.world.block.BlockArea; import org.terasology.engine.world.block.BlockAreac;
int maxY = pos.y() + rotateY(dir, right + width - 1, forward + len - 1); return new BlockArea(minX, minY).union(maxX, maxY); } /** * Creates a rectangle that is centered along the current direction. * <pre> * x------x * o-> | | * x------x * </pre> ...
// Path: src/main/java/org/terasology/cities/common/Edges.java // public final class Edges { // // private Edges() { // // no instances // } // // public static Vector2i getCorner(BlockAreac rc, Orientation o) { // // int dx = o.direction().x() + 1; // [0..2] // int dy = o.direct...
Vector2i max = Edges.getCorner(rc, cd);
Terasology/Cities
src/main/java/org/terasology/cities/bldg/SimpleTower.java
// Path: src/main/java/org/terasology/cities/common/Edges.java // public final class Edges { // // private Edges() { // // no instances // } // // public static Vector2i getCorner(BlockAreac rc, Orientation o) { // // int dx = o.direction().x() + 1; // [0..2] // int dy = o.direct...
import org.joml.Vector2i; import org.terasology.cities.common.Edges; import org.terasology.cities.door.SimpleDoor; import org.terasology.cities.model.roof.BattlementRoof; import org.terasology.cities.model.roof.Roof; import org.terasology.commonworld.Orientation; import org.terasology.engine.world.block.BlockArea; impo...
/* * Copyright 2015 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: src/main/java/org/terasology/cities/common/Edges.java // public final class Edges { // // private Edges() { // // no instances // } // // public static Vector2i getCorner(BlockAreac rc, Orientation o) { // // int dx = o.direction().x() + 1; // [0..2] // int dy = o.direct...
Roof roof = new BattlementRoof(layout, roofArea, baseHeight + wallHeight, 1);
Terasology/Cities
src/main/java/org/terasology/cities/bldg/SimpleTower.java
// Path: src/main/java/org/terasology/cities/common/Edges.java // public final class Edges { // // private Edges() { // // no instances // } // // public static Vector2i getCorner(BlockAreac rc, Orientation o) { // // int dx = o.direction().x() + 1; // [0..2] // int dy = o.direct...
import org.joml.Vector2i; import org.terasology.cities.common.Edges; import org.terasology.cities.door.SimpleDoor; import org.terasology.cities.model.roof.BattlementRoof; import org.terasology.cities.model.roof.Roof; import org.terasology.commonworld.Orientation; import org.terasology.engine.world.block.BlockArea; impo...
/* * Copyright 2015 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: src/main/java/org/terasology/cities/common/Edges.java // public final class Edges { // // private Edges() { // // no instances // } // // public static Vector2i getCorner(BlockAreac rc, Orientation o) { // // int dx = o.direction().x() + 1; // [0..2] // int dy = o.direct...
Roof roof = new BattlementRoof(layout, roofArea, baseHeight + wallHeight, 1);
Terasology/Cities
src/main/java/org/terasology/cities/bldg/StaircaseBuildingPart.java
// Path: src/main/java/org/terasology/cities/model/roof/Roof.java // public interface Roof { // // // }
import org.terasology.cities.model.roof.Roof; import org.terasology.commonworld.Orientation; import org.terasology.engine.world.block.BlockArea; import org.terasology.engine.world.block.BlockAreac;
/* * Copyright 2015 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: src/main/java/org/terasology/cities/model/roof/Roof.java // public interface Roof { // // // } // Path: src/main/java/org/terasology/cities/bldg/StaircaseBuildingPart.java import org.terasology.cities.model.roof.Roof; import org.terasology.commonworld.Orientation; import org.terasology.engine.world.block.B...
public StaircaseBuildingPart(BlockAreac layout, Orientation o, Roof roof, int baseHeight, int wallHeight) {
Terasology/Cities
src/test/java/org/terasology/cities/bldg/DebugRasterTarget.java
// Path: src/main/java/org/terasology/cities/BlockType.java // public interface BlockType { // // empty marker // } // // Path: src/main/java/org/terasology/cities/DefaultBlockType.java // public enum DefaultBlockType implements BlockType { // // /** // * Air // */ // AIR, // // /** // ...
import java.util.Set; import org.terasology.cities.BlockType; import org.terasology.cities.DefaultBlockType; import org.terasology.cities.raster.RasterTarget; import org.terasology.engine.math.Side; import org.terasology.engine.world.block.BlockArea; import org.terasology.engine.world.block.BlockAreac; import org.teras...
/* * Copyright 2015 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
// Path: src/main/java/org/terasology/cities/BlockType.java // public interface BlockType { // // empty marker // } // // Path: src/main/java/org/terasology/cities/DefaultBlockType.java // public enum DefaultBlockType implements BlockType { // // /** // * Air // */ // AIR, // // /** // ...
private final List<BlockType> mapping = new ArrayList<BlockType>();
Terasology/Cities
src/main/java/org/terasology/cities/bldg/HollowBuildingPart.java
// Path: src/main/java/org/terasology/cities/bldg/shape/RectangularBase.java // public interface RectangularBase { // BlockAreac getShape(); // } // // Path: src/main/java/org/terasology/cities/model/roof/Roof.java // public interface Roof { // // // }
import org.terasology.cities.bldg.shape.RectangularBase; import org.terasology.cities.model.roof.Roof; import org.terasology.engine.world.block.BlockArea; import org.terasology.engine.world.block.BlockAreac;
/* * Copyright 2015 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: src/main/java/org/terasology/cities/bldg/shape/RectangularBase.java // public interface RectangularBase { // BlockAreac getShape(); // } // // Path: src/main/java/org/terasology/cities/model/roof/Roof.java // public interface Roof { // // // } // Path: src/main/java/org/terasology/cities/bldg/HollowBu...
public HollowBuildingPart(BlockAreac layout, Roof roof, int baseHeight, int wallHeight, int arcRadius) {
Terasology/Cities
src/main/java/org/terasology/cities/deco/Ladder.java
// Path: src/main/java/org/terasology/cities/DefaultBlockType.java // public enum DefaultBlockType implements BlockType { // // /** // * Air // */ // AIR, // // /** // * Windows // */ // WINDOW_GLASS, // // /** // * A single-block door element // */ // SIMPLE_DOO...
import org.joml.Vector3ic; import org.terasology.cities.DefaultBlockType; import org.terasology.commonworld.Orientation; import org.terasology.engine.math.Side; import java.util.Collections;
/* * Copyright 2015 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: src/main/java/org/terasology/cities/DefaultBlockType.java // public enum DefaultBlockType implements BlockType { // // /** // * Air // */ // AIR, // // /** // * Windows // */ // WINDOW_GLASS, // // /** // * A single-block door element // */ // SIMPLE_DOO...
super(Collections.nCopies(height, DefaultBlockType.LADDER),
Terasology/Cities
src/main/java/org/terasology/cities/raster/BuildingPens.java
// Path: src/main/java/org/terasology/cities/BlockType.java // public interface BlockType { // // empty marker // } // // Path: src/main/java/org/terasology/cities/DefaultBlockType.java // public enum DefaultBlockType implements BlockType { // // /** // * Air // */ // AIR, // // /** // ...
import org.terasology.cities.BlockType; import org.terasology.cities.DefaultBlockType; import org.terasology.commonworld.heightmap.HeightMap;
/* * Copyright 2015 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
// Path: src/main/java/org/terasology/cities/BlockType.java // public interface BlockType { // // empty marker // } // // Path: src/main/java/org/terasology/cities/DefaultBlockType.java // public enum DefaultBlockType implements BlockType { // // /** // * Air // */ // AIR, // // /** // ...
public static Pen floorPen(RasterTarget target, HeightMap terrainHeightMap, int baseHeight, BlockType floor) {
Terasology/Cities
src/main/java/org/terasology/cities/raster/BuildingPens.java
// Path: src/main/java/org/terasology/cities/BlockType.java // public interface BlockType { // // empty marker // } // // Path: src/main/java/org/terasology/cities/DefaultBlockType.java // public enum DefaultBlockType implements BlockType { // // /** // * Air // */ // AIR, // // /** // ...
import org.terasology.cities.BlockType; import org.terasology.cities.DefaultBlockType; import org.terasology.commonworld.heightmap.HeightMap;
/* * Copyright 2015 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
// Path: src/main/java/org/terasology/cities/BlockType.java // public interface BlockType { // // empty marker // } // // Path: src/main/java/org/terasology/cities/DefaultBlockType.java // public enum DefaultBlockType implements BlockType { // // /** // * Air // */ // AIR, // // /** // ...
target.setBlock(x, y, z, DefaultBlockType.BUILDING_FOUNDATION);
Terasology/Cities
src/main/java/org/terasology/cities/bldg/RoundBuildingPart.java
// Path: src/main/java/org/terasology/cities/bldg/shape/CircularBase.java // public interface CircularBase { // // Circlef getShape(); // } // // Path: src/main/java/org/terasology/cities/model/roof/Roof.java // public interface Roof { // // // }
import org.terasology.cities.bldg.shape.CircularBase; import org.terasology.cities.model.roof.Roof; import org.terasology.joml.geom.Circlef;
/* * Copyright 2015 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: src/main/java/org/terasology/cities/bldg/shape/CircularBase.java // public interface CircularBase { // // Circlef getShape(); // } // // Path: src/main/java/org/terasology/cities/model/roof/Roof.java // public interface Roof { // // // } // Path: src/main/java/org/terasology/cities/bldg/RoundBuilding...
public RoundBuildingPart(Circlef layout, Roof roof, int baseHeight, int wallHeight) {
Terasology/Cities
src/main/java/org/terasology/cities/deco/Pillar.java
// Path: src/main/java/org/terasology/cities/BlockType.java // public interface BlockType { // // empty marker // } // // Path: src/main/java/org/terasology/cities/DefaultBlockType.java // public enum DefaultBlockType implements BlockType { // // /** // * Air // */ // AIR, // // /** // ...
import com.google.common.collect.ImmutableList; import org.joml.Vector3ic; import org.terasology.cities.BlockType; import org.terasology.cities.DefaultBlockType; import org.terasology.engine.math.Side; import java.util.Collections; import java.util.List;
/* * Copyright 2015 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: src/main/java/org/terasology/cities/BlockType.java // public interface BlockType { // // empty marker // } // // Path: src/main/java/org/terasology/cities/DefaultBlockType.java // public enum DefaultBlockType implements BlockType { // // /** // * Air // */ // AIR, // // /** // ...
private static List<BlockType> createList(int height) {
Terasology/Cities
src/main/java/org/terasology/cities/deco/Pillar.java
// Path: src/main/java/org/terasology/cities/BlockType.java // public interface BlockType { // // empty marker // } // // Path: src/main/java/org/terasology/cities/DefaultBlockType.java // public enum DefaultBlockType implements BlockType { // // /** // * Air // */ // AIR, // // /** // ...
import com.google.common.collect.ImmutableList; import org.joml.Vector3ic; import org.terasology.cities.BlockType; import org.terasology.cities.DefaultBlockType; import org.terasology.engine.math.Side; import java.util.Collections; import java.util.List;
/* * Copyright 2015 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: src/main/java/org/terasology/cities/BlockType.java // public interface BlockType { // // empty marker // } // // Path: src/main/java/org/terasology/cities/DefaultBlockType.java // public enum DefaultBlockType implements BlockType { // // /** // * Air // */ // AIR, // // /** // ...
.add(DefaultBlockType.PILLAR_BASE)
Terasology/Cities
src/main/java/org/terasology/cities/bldg/BuildingPart.java
// Path: src/main/java/org/terasology/cities/deco/Decoration.java // public interface Decoration { // // empty // } // // Path: src/main/java/org/terasology/cities/door/Door.java // public interface Door { // // empty marker interface // } // // Path: src/main/java/org/terasology/cities/model/roof/Roof.java /...
import org.terasology.cities.deco.Decoration; import org.terasology.cities.door.Door; import org.terasology.cities.model.roof.Roof; import org.terasology.cities.window.Window; import java.util.Set;
/* * Copyright 2015 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: src/main/java/org/terasology/cities/deco/Decoration.java // public interface Decoration { // // empty // } // // Path: src/main/java/org/terasology/cities/door/Door.java // public interface Door { // // empty marker interface // } // // Path: src/main/java/org/terasology/cities/model/roof/Roof.java /...
Set<Window> getWindows();
Terasology/Cities
src/main/java/org/terasology/cities/bldg/BuildingPart.java
// Path: src/main/java/org/terasology/cities/deco/Decoration.java // public interface Decoration { // // empty // } // // Path: src/main/java/org/terasology/cities/door/Door.java // public interface Door { // // empty marker interface // } // // Path: src/main/java/org/terasology/cities/model/roof/Roof.java /...
import org.terasology.cities.deco.Decoration; import org.terasology.cities.door.Door; import org.terasology.cities.model.roof.Roof; import org.terasology.cities.window.Window; import java.util.Set;
/* * Copyright 2015 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: src/main/java/org/terasology/cities/deco/Decoration.java // public interface Decoration { // // empty // } // // Path: src/main/java/org/terasology/cities/door/Door.java // public interface Door { // // empty marker interface // } // // Path: src/main/java/org/terasology/cities/model/roof/Roof.java /...
Set<Door> getDoors();
Terasology/Cities
src/main/java/org/terasology/cities/bldg/BuildingPart.java
// Path: src/main/java/org/terasology/cities/deco/Decoration.java // public interface Decoration { // // empty // } // // Path: src/main/java/org/terasology/cities/door/Door.java // public interface Door { // // empty marker interface // } // // Path: src/main/java/org/terasology/cities/model/roof/Roof.java /...
import org.terasology.cities.deco.Decoration; import org.terasology.cities.door.Door; import org.terasology.cities.model.roof.Roof; import org.terasology.cities.window.Window; import java.util.Set;
/* * Copyright 2015 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: src/main/java/org/terasology/cities/deco/Decoration.java // public interface Decoration { // // empty // } // // Path: src/main/java/org/terasology/cities/door/Door.java // public interface Door { // // empty marker interface // } // // Path: src/main/java/org/terasology/cities/model/roof/Roof.java /...
Set<Decoration> getDecorations();
Terasology/Cities
src/main/java/org/terasology/cities/bldg/RectBuildingPart.java
// Path: src/main/java/org/terasology/cities/bldg/shape/RectangularBase.java // public interface RectangularBase { // BlockAreac getShape(); // } // // Path: src/main/java/org/terasology/cities/model/roof/Roof.java // public interface Roof { // // // }
import org.terasology.cities.bldg.shape.RectangularBase; import org.terasology.cities.model.roof.Roof; import org.terasology.engine.world.block.BlockArea; import org.terasology.engine.world.block.BlockAreac;
/* * Copyright 2015 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: src/main/java/org/terasology/cities/bldg/shape/RectangularBase.java // public interface RectangularBase { // BlockAreac getShape(); // } // // Path: src/main/java/org/terasology/cities/model/roof/Roof.java // public interface Roof { // // // } // Path: src/main/java/org/terasology/cities/bldg/RectBuil...
public RectBuildingPart(BlockAreac layout,Roof roof, int baseHeight, int wallHeight) {
Terasology/Cities
src/main/java/org/terasology/cities/raster/Pens.java
// Path: src/main/java/org/terasology/cities/BlockType.java // public interface BlockType { // // empty marker // }
import org.terasology.cities.BlockType; import org.terasology.commonworld.heightmap.HeightMap;
/* * Copyright 2015 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: src/main/java/org/terasology/cities/BlockType.java // public interface BlockType { // // empty marker // } // Path: src/main/java/org/terasology/cities/raster/Pens.java import org.terasology.cities.BlockType; import org.terasology.commonworld.heightmap.HeightMap; /* * Copyright 2015 MovingBlocks * * ...
public static Pen fill(RasterTarget target, int bottomHeight, int topHeight, BlockType type) {
Terasology/Cities
src/main/java/org/terasology/cities/walls/TownWall.java
// Path: src/main/java/org/terasology/cities/bldg/Tower.java // public interface Tower extends Building { // // marker // }
import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.terasology.cities.bldg.Tower; import com.google.common.collect.Lists;
/* * Copyright 2015 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Path: src/main/java/org/terasology/cities/bldg/Tower.java // public interface Tower extends Building { // // marker // } // Path: src/main/java/org/terasology/cities/walls/TownWall.java import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.terasology.cities.bldg.Tower; imp...
private final List<Tower> towers = new ArrayList<>();