public static Integer generateIntegerExample ( List < Integer > enumValues ) { if ( enumValues == null || enumValues . isEmpty ( ) ) { return 0 ; } else { return enumValues . get ( 0 ) ; } }
Generates examples for integer properties - if there are enums it uses first enum value returns 0 otherwise .