Package 

Class StringToSortConverter

  • All Implemented Interfaces:
    org.springframework.core.convert.converter.Converter

    
    public class StringToSortConverter
     implements Converter<String, Sort>
                        

    字符串到排序对象的转化器。

    • 默认对属性进行升序排序。

    • 不检查属性名的正确性。

    • 示例:"", "+name", "+name,-age", "name,age"。

    • 默认值:""。

    • Method Summary

      Modifier and Type Method Description
      Sort convert(String string)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringToSortConverter

        StringToSortConverter()