Class Poi.Builder

  • Enclosing class:
    Poi

    public static final class Poi.Builder
    extends Object
    Builder to create a Poi instances
    • Constructor Detail

      • Builder

        public Builder​(Poi toCopy)
      • Builder

        public Builder​(@NonNull
                       Point position)
      • Builder

        public Builder​(@NonNull
                       String buildingIdentifier,
                       @NonNull
                       Coordinate coordinate)
        Creates a Builder for outdoor POI
        Parameters:
        buildingIdentifier - Identifier of building to which POI belongs.
        coordinate - Not null. Geographical coordinate of this position.
        Throws:
        IllegalArgumentException - when buildingIdentifier and/or coordinate are null.
      • Builder

        public Builder​(@NonNull
                       String buildingIdentifier,
                       @NonNull
                       String floorIdentifier,
                       @NonNull
                       Coordinate coordinate,
                       @NonNull
                       CartesianCoordinate cartesianCoordinate)
        Creates a Builder for indoor POI.
        Parameters:
        buildingIdentifier - Identifier of building to which POI belongs.
        floorIdentifier - Identifier of building's level, where the position is.
        coordinate - Geographical coordinate of this position.
        cartesianCoordinate - Cartesian coordinate of this position.
        Throws:
        IllegalArgumentException - when some of the params is null.
    • Method Detail

      • name

        @NonNull
        public Poi.Builder name​(@NonNull
                                String name)
        Parameters:
        name - a name for the POI, appropriate for display to the user.
        Returns:
        current Poi.Builder instance
      • infoHtml

        @NonNull
        public Poi.Builder infoHtml​(@NonNull
                                    String infoHtml)
        Parameters:
        infoHtml - additional information about POI, in HTML.
        Returns:
        current Poi.Builder instance
      • category

        @NonNull
        public Poi.Builder category​(@NonNull
                                    PoiCategory category)
        Parameters:
        category - category of the POI
        Returns:
        current Poi.Builder instance
      • build

        @NonNull
        public Poi build()
        Returns:
        new Poi instance