public static int [ ] getIntArray ( Properties props , String key ) { Integer [ ] result = MetaClass . cast ( props . getProperty ( key ) , Integer [ ] . class ) ; return ArrayUtils . toPrimitive ( result ) ; }
Loads a comma - separated list of integers from Properties . The list cannot include any whitespace .