Class ToastTypeBuilder


  • public final class ToastTypeBuilder
    extends Object
    Comfortable object to create custom IsToastType by a builder.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • create

        public static ToastTypeBuilder create​(String name,
                                              String backgroundColor)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        backgroundColor - background color of toast
        Returns:
        new builder instance
      • create

        public static ToastTypeBuilder create​(Key name,
                                              String backgroundColor)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        backgroundColor - background color of toast
        Returns:
        new builder instance
      • create

        public static ToastTypeBuilder create​(String name,
                                              IsColor backgroundColor)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        backgroundColor - background color of toast
        Returns:
        new builder instance
      • create

        public static ToastTypeBuilder create​(Key name,
                                              IsColor backgroundColor)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        backgroundColor - background color of toast
        Returns:
        new builder instance
      • create

        public static ToastTypeBuilder create​(String name,
                                              String color,
                                              String backgroundColor)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        color - color of the toast type for text
        backgroundColor - background color of toast
        Returns:
        new builder instance
      • create

        public static ToastTypeBuilder create​(Key name,
                                              String color,
                                              String backgroundColor)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        color - color of the toast type for text
        backgroundColor - background color of toast
        Returns:
        new builder instance
      • create

        public static ToastTypeBuilder create​(String name,
                                              IsColor color,
                                              IsColor backgroundColor)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        color - color of the toast type for text
        backgroundColor - background color of toast
        Returns:
        new builder instance
      • create

        public static ToastTypeBuilder create​(Key name,
                                              IsColor color,
                                              IsColor backgroundColor)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        color - color of the toast type for text
        backgroundColor - background color of toast
        Returns:
        new builder instance
      • create

        public static ToastTypeBuilder create​(String name,
                                              Pattern pattern)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        pattern - background pattern of toast
        Returns:
        new builder instance
      • create

        public static ToastTypeBuilder create​(Key name,
                                              Pattern pattern)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        pattern - background pattern of toast
        Returns:
        new builder instance
      • create

        public static ToastTypeBuilder create​(String name,
                                              String color,
                                              Pattern pattern)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        color - color of the toast type for text
        pattern - background pattern of toast
        Returns:
        new builder instance
      • create

        public static ToastTypeBuilder create​(Key name,
                                              String color,
                                              Pattern pattern)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        color - color of the toast type for text
        pattern - background pattern of toast
        Returns:
        new builder instance
      • create

        public static ToastTypeBuilder create​(String name,
                                              IsColor color,
                                              Pattern pattern)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        color - color of the toast type for text
        pattern - background pattern of toast
        Returns:
        new builder instance
      • create

        public static ToastTypeBuilder create​(Key name,
                                              IsColor color,
                                              Pattern pattern)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        color - color of the toast type for text
        pattern - background pattern of toast
        Returns:
        new builder instance
      • create

        public static ToastTypeBuilder create​(String name,
                                              Gradient gradient)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        gradient - background gradient of toast
        Returns:
        new builder instance
      • create

        public static ToastTypeBuilder create​(Key name,
                                              Gradient gradient)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        gradient - background gradient of toast
        Returns:
        new builder instance
      • create

        public static ToastTypeBuilder create​(String name,
                                              String color,
                                              Gradient gradient)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        color - color of the toast type for text
        gradient - background gradient of toast
        Returns:
        new builder instance
      • create

        public static ToastTypeBuilder create​(Key name,
                                              String color,
                                              Gradient gradient)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        color - color of the toast type for text
        gradient - background gradient of toast
        Returns:
        new builder instance
      • create

        public static ToastTypeBuilder create​(String name,
                                              IsColor color,
                                              Gradient gradient)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        color - color of the toast type for text
        gradient - background gradient of toast
        Returns:
        new builder instance
      • create

        public static ToastTypeBuilder create​(Key name,
                                              IsColor color,
                                              Gradient gradient)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        color - color of the toast type for text
        gradient - background gradient of toast
        Returns:
        new builder instance
      • build

        public IsToastType build()
        Returns new toast type.
        Returns:
        new toast type.