Class FluentLabelImpl<T>

    • Constructor Detail

      • FluentLabelImpl

        public FluentLabelImpl​(T reference,
                               Supplier<String> defaultLabelSupplier)
        Creates a new fluent label.
        Parameters:
        reference - object reference to chain methods calls.
        defaultLabelSupplier - supplier for default label to display when no label is defined.
    • Method Detail

      • withLabel

        public T withLabel​(String label)
        Description copied from interface: FluentLabel
        Apply a label that will be displayed as the representation of this object for error message.
        Specified by:
        withLabel in interface FluentLabel<T>
        Parameters:
        label - label to use
        Returns:
        reference to this object to chain calls
      • withLabelHint

        public T withLabelHint​(String... labelHint)
        Description copied from interface: FluentLabel
        Add a label hint that will be appended to the representation of this object for error message.
        Specified by:
        withLabelHint in interface FluentLabel<T>
        Parameters:
        labelHint - label hints to add
        Returns:
        reference to this object to chain calls