Class Floor.Builder

  • Enclosing class:
    Floor

    public static final class Floor.Builder
    extends java.lang.Object
    Builder to create a Floor instance
    • Constructor Detail

      • Builder

        public Builder()
      • Builder

        public Builder​(Floor floor)
    • Method Detail

      • buildingIdentifier

        @NonNull
        public Floor.Builder buildingIdentifier​(@NonNull
                                                java.lang.String buildingIdentifier)
        Parameters:
        buildingIdentifier - identifier of building which this floor belongs.
        Returns:
        current Floor.Builder instance
      • name

        @NonNull
        public Floor.Builder name​(@NonNull
                                  java.lang.String name)
        Parameters:
        name - name of the floor
        Returns:
        current Floor.Builder instance
      • level

        @Deprecated
        @NonNull
        public Floor.Builder level​(int level)
        Deprecated.
        use floor(int) instead
        Parameters:
        level - number of the floor
        Returns:
        current Floor.Builder instance
      • floor

        @NonNull
        public Floor.Builder floor​(int floor)
        Parameters:
        floor - number of the floor
        Returns:
        current Floor.Builder instance
      • scale

        @NonNull
        public Floor.Builder scale​(double scale)
        Parameters:
        scale - scale of the floor image, as px/meters
        Returns:
        current Floor.Builder instance
      • altitude

        @NonNull
        public Floor.Builder altitude​(double altitude)
        Parameters:
        altitude - height of the floor above ground level, in meters
        Returns:
        current Floor.Builder instance
      • build

        @NonNull
        public final Floor build()
        Returns:
        new Floor instance