public static Integer [ ] deserializeInt ( String string ) { if ( string == null ) { return new Integer [ 0 ] ; } return Arrays . stream ( string . split ( "," ) ) . filter ( s -> ! s . equals ( "" ) ) . map ( Integer :: parseInt ) . toArray ( Integer [ ] :: new ) ; }
Parse comma separated string to Integer array .