public static boolean isNumber ( String numberString ) { return Optional . ofNullable ( numberPattern ) . orElseGet ( ( ) -> numberPattern = Pattern . compile ( NumberPattern ) ) . matcher ( numberString ) . matches ( ) ; }
Is number boolean .