Class GeoObject.GeoBuilder<F extends GeoObject,​B extends GeoObject.GeoBuilder<F,​?>>

    • Constructor Detail

      • GeoBuilder

        protected GeoBuilder​(java.lang.Class<F> clazz,
                             GeoObject.GeoType type)
        Constructor used to set the GeoJSON class and type.
        Parameters:
        clazz - target GeoJSON object class.
        type - target GeoJSON object type.
    • Method Detail

      • self

        protected abstract B self()
        Returns subclass instance.
        Returns:
        builder instance reference.
      • type

        public final B type​(GeoObject.GeoType type)
        Does nothing since GeoJSON type is set in the constructor. This method is required for eBus message de-serialization.
        Parameters:
        type - GeoJSON data type.
        Returns:
        this Builder instance.
      • boundingBox

        public final B boundingBox​(BoundingBox bbox)
        Sets optional bounding box.
        Parameters:
        bbox - bounding box. May be null.
        Returns:
        this Builder instance.