public Optional < Integer > getMinlength ( ) { if ( property instanceof StringProperty ) { StringProperty stringProperty = ( StringProperty ) property ; return Optional . ofNullable ( stringProperty . getMinLength ( ) ) ; } else if ( property instanceof UUIDProperty ) { UUIDProperty uuidProperty = ( UUIDProperty ) property ; return Optional . ofNullable ( uuidProperty . getMinLength ( ) ) ; } return Optional . empty ( ) ; }
Retrieves the minLength of a property