com.groupdocs.comparison.options

Class PreviewOptions.Builder

  • Enclosing class:
    PreviewOptions


    public static class PreviewOptions.Builder
    extends Object
    A little sugar
    • Constructor Detail

      • Builder

        public Builder(Delegates.CreatePageStream createPageStream)
        Instantiates a new Builder.
        Parameters:
        createPageStream - the create page stream
    • Method Detail

      • build

        public final PreviewOptions build()
        Build preview options.
        Returns:
        the preview options
      • setHeight

        public PreviewOptions.Builder setHeight(int value)
        Sets height.
        Parameters:
        value - the value
        Returns:
        the height
      • setPageNumbers

        public PreviewOptions.Builder setPageNumbers(int[] value)
        Sets page numbers.
        Parameters:
        value - the value
        Returns:
        the page numbers
      • setPreviewFormat

        public PreviewOptions.Builder setPreviewFormat(int value)
        Sets preview format.
        Parameters:
        value - the value
        Returns:
        the preview format
      • setWidth

        public PreviewOptions.Builder setWidth(int value)
        Sets width.
        Parameters:
        value - the value
        Returns:
        the width