protected Parameter createSizeParameter ( ParameterContext context ) { ModelReference intModel = createModelRefFactory ( context ) . apply ( resolver . resolve ( Integer . TYPE ) ) ; return new ParameterBuilder ( ) . name ( getSizeName ( ) ) . parameterType ( SIZE_TYPE ) . modelRef ( intModel ) . description ( SIZE_DESCRIPTION ) . build ( ) ; }
Create a size parameter . Override it if needed . Set a default value for example .