public static Long[] transformToLong(final String[] ids) {
    if (null == ids) return new Long[0];
    Long[] idsOfLong = new Long[ids.length];
    for (int i = 0; i < ids.length; i++) {
      idsOfLong[i] = new Long(ids[i]);
    }
    return idsOfLong;
  }
public static Long [ ] transformToLong ( final String [ ] ids ) { if ( null == ids ) return new Long [ 0 ] ; Long [ ] idsOfLong = new Long [ ids . length ] ; for ( int i = 0 ; i < ids . length ; i ++ ) { idsOfLong [ i ] = new Long ( ids [ i ] ) ; } return idsOfLong ; }
transformToLong.

@param ids an array of {@link java.lang.String} objects.
@return an array of {@link java.lang.Long} objects. If ids is null, return Long[0]