Menu

How to convert List<Long> in TLong...

Help
Anonymous
2011-09-14
2012-09-24
  • Anonymous

    Anonymous - 2011-09-14

    Hi All,
    Please help me. I need convert List<Long> in TLongArrayList. Does this method
    in the Trove?
    Or how to implement this method effectively?

    Best regards Alexander.

     
  • Rob Eden

    Rob Eden - 2011-09-14

    What you used to write as this:

    List<Long> my_list = new ArrayList<Long>();
    my_list.add( Long.valueOf( 0L ) );
    ...
    

    ... should instead be written as:

    TLongList my_list = new TLongArrayList();
    my_list.add( 0 );
    ...
    

    Rob

     

Log in to post a comment.