com.vaadin.data.converter.

Class StringToLongConverter

    • Constructor Detail

      • StringToLongConverter

        public StringToLongConverter​(String errorMessage)

        Creates a new converter instance with the given error message. Empty strings are converted to null.

        Parameters:

        errorMessage - the error message to use if conversion fails

      • StringToLongConverter

        public StringToLongConverter​(Long emptyValue,
                                     String errorMessage)

        Creates a new converter instance with the given empty string value and error message.

        Parameters:

        emptyValue - the presentation value to return when converting an empty string, may be null

        errorMessage - the error message to use if conversion fails

      • StringToLongConverter

        public StringToLongConverter​(ErrorMessageProvider errorMessageProvider)

        Creates a new converter instance with the given error message provider. Empty strings are converted to null.

        Parameters:

        errorMessageProvider - the error message provider to use if conversion fails

        Since:

        8.4

      • StringToLongConverter

        public StringToLongConverter​(Long emptyValue,
                                     ErrorMessageProvider errorMessageProvider)

        Creates a new converter instance with the given empty string value and error message provider.

        Parameters:

        emptyValue - the presentation value to return when converting an empty string, may be null

        errorMessageProvider - the error message provider to use if conversion fails

        Since:

        8.4