Advertisement
aironman

CircularArrayList

Jan 22nd, 2015
263
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. public class CircularArrayList<E> extends ArrayList<E> {
  3.  
  4. /**
  5. *
  6. */
  7. private static final long serialVersionUID = -6606948610925029196L;
  8.  
  9. public E get(int index) {
  10. return super.get(index % size());
  11. }
  12. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement