1 22 23 package org.xquark.mapper.util; 24 25 26 import java.util.ArrayList ; 27 28 31 public class LongList extends BaseTypedList 32 { 33 private static final String RCSRevision = "$Revision: 1.1 $"; 34 private static final String RCSName = "$Name: $"; 35 36 public LongList() {} 37 38 public LongList(int size) 39 { 40 super(size); 41 } 42 43 public LongList(ArrayList list) 44 { 45 super(list); 46 } 47 48 public void add(long element) 49 { 50 list.add(new Long (element)); 51 } 52 53 public LongList append(long element) 54 { 55 list.add(new Long (element)); 56 return this; 57 } 58 59 public LongList append(Long element) 60 { 61 list.add(element); 62 return this; 63 } 64 65 public void add(Long element) 66 { 67 list.add(element); 68 } 69 70 public void add(int index, long element) 71 { 72 list.add(index, new Long (element)); 73 } 74 75 public void add(int index, Long element) 76 { 77 list.add(index, element); 78 } 79 80 public void remove(Long element) 81 { 82 list.remove(element); 83 } 84 85 public long getValue(int index) 86 { 87 return ((Long )list.get(index)).longValue(); 88 } 89 90 public Long get(int index) 91 { 92 return (Long ) list.get(index); 93 } 94 } 95 | Popular Tags |