public Long getLong ( String name ) { Object o = get ( name ) ; if ( o instanceof Number ) { return ( ( Number ) o ) . longValue ( ) ; } if ( o != null ) { try { return Long . parseLong ( o . toString ( ) ) ; } catch ( NumberFormatException e ) { } } return null ; }
Helper method for obtaining long value from parameter