Class StringToUserSortByConverter

  • All Implemented Interfaces:
    org.springframework.core.convert.converter.Converter<String,​UserSortBy>

    @Component
    public class StringToUserSortByConverter
    extends Object
    implements org.springframework.core.convert.converter.Converter<String,​UserSortBy>
    The StringToUserSortByConverter class implements the Spring converter that converts a String type into a UserSortBy type.
    Author:
    Marcus Portmann
    • Constructor Detail

      • StringToUserSortByConverter

        public StringToUserSortByConverter()
        Constructs a new StringToUserSortByConverter.
    • Method Detail

      • convert

        public UserSortBy convert​(String source)
        Specified by:
        convert in interface org.springframework.core.convert.converter.Converter<String,​UserSortBy>