Annotation Type SortStringEntries


@Documented @Inherited @Target(FIELD) @Retention(RUNTIME) public @interface SortStringEntries

Defines entries of a string collection or array form field (whether on a Struts Action or model of ModelDriven Struts Action) should be sorted according to String.compareTo().

Parameters

Parameters
descending If true, sorts in descending order. Defaults to false.
ignoreCase If true, uses String.compareToIgnoreCase. Defaults to false
nullsLast If true, null is last in order. Defaults to false.

This annotation applies a list post-conversion adjuster, which comes after post-conversion adjusters and before post-conversion validation. It only applies to array or collection non-string fields.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
     
    boolean
     
    boolean
     
  • Element Details

    • descending

      boolean descending
      Default:
      false
    • ignoreCase

      boolean ignoreCase
      Default:
      false
    • nullsLast

      boolean nullsLast
      Default:
      false