Class MinResolver<T>

  • All Implemented Interfaces:
    ProductsResolver<T,​Void>

    public class MinResolver<T>
    extends FromListResolver<T,​T>
    Resolves the minimum value IMPORTANT: When using this resolver for enum properties the enum must be ordered from greatest to least to be consistent when resolving to null if because the product accessor implementation assumes that.
    In case the enum implements HasDefault then the value marked as the default will be returned when resolving to null.
    • Constructor Detail

      • MinResolver

        public MinResolver()
    • Method Detail

      • toResult

        protected T toResult​(List<T> values)
        Description copied from class: FromListResolver
        Must be implemented to actually transform the given list of all values to the expected result
        Specified by:
        toResult in class FromListResolver<T,​T>