Class BlockSpacing.Builder

  • Enclosing class:
    BlockSpacing

    public static final class BlockSpacing.Builder
    extends Object
    Provides a builder for block spacing.
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • leftSpacing

        public BlockSpacing.Builder leftSpacing​(int leftSpacing)
        Set the left spacing for the block, in characters.
        Parameters:
        leftSpacing - left spacing, in characters
        Returns:
        returns "this" object
      • rightSpacing

        public BlockSpacing.Builder rightSpacing​(int rightSpacing)
        Set the right spacing for the block, in characters.
        Parameters:
        rightSpacing - right spacing, in characters
        Returns:
        returns "this" object
      • topSpacing

        public BlockSpacing.Builder topSpacing​(int topSpacing)
        Set the top spacing for the block, in characters.
        Parameters:
        topSpacing - top spacing, in characters
        Returns:
        returns "this" object
      • bottomSpacing

        public BlockSpacing.Builder bottomSpacing​(int bottomSpacing)
        Set the bottom spacing for the block, in characters.
        Parameters:
        bottomSpacing - bottom spacing, in characters
        Returns:
        returns "this" object
      • build

        public BlockSpacing build()
        Build BlockSpacing using the current state of the Builder.
        Returns:
        returns a new BlockSpacing instance