/** * FastIntBuffer constructor comment. */ public FastObjectBuffer() { size = 0; capacity = 0; pageSize = 1024; exp = 10; r = 1023; bufferArrayList = new arrayList(); } /**
/** * FastIntBuffer constructor comment. */ public FastIntBuffer() { size = 0; capacity = 0; pageSize = 1024; exp = 10; r = 1023; bufferArrayList = new arrayList(); } /**
/** * FastLongBuffer constructor comment. */ public FastLongBuffer() { size = 0; capacity = 0; pageSize = 1024; exp = 10; r = 1023; bufferArrayList = new arrayList(); }
/** * FastIntBuffer constructor comment. */ public FastIntBuffer() { size = 0; capacity = 0; pageSize = 1024; exp = 10; r = 1023; bufferArrayList = new arrayList(); } /**
/** * FastLongBuffer constructor comment. */ public FastLongBuffer() { size = 0; capacity = 0; pageSize = 1024; exp = 10; r = 1023; bufferArrayList = new arrayList(); } /**
/** * FastIntBuffer constructor comment. */ public FastObjectBuffer() { size = 0; capacity = 0; pageSize = 1024; exp = 10; r = 1023; bufferArrayList = new arrayList(); } /**
/** * FastIntBuffer constructor comment. */ public FastObjectBuffer() { size = 0; capacity = 0; pageSize = 1024; exp = 10; r = 1023; bufferArrayList = new arrayList(); } /**
/** * FastLongBuffer constructor comment. */ public FastLongBuffer() { size = 0; capacity = 0; pageSize = 1024; exp = 10; r = 1023; bufferArrayList = new arrayList(); } /**
/** * FastIntBuffer constructor comment. */ public FastIntBuffer() { size = 0; capacity = 0; pageSize = 1024; exp = 10; r = 1023; bufferArrayList = new arrayList(); } /**
/** * Construct a FastLongBuffer instance with specified page size * @param e int (so that pageSize = (1<<e)) */ public FastLongBuffer(int e) { if (e <= 0) { throw new IllegalArgumentException(); } capacity = size = 0; pageSize = (1<<e); exp = e; r = pageSize -1; bufferArrayList = new arrayList(); }
/** * Construct a FastLongBuffer instance with specified page size * @param e int (so that pageSize = (1<<e)) */ public FastLongBuffer(int e) { if (e <= 0) { throw new IllegalArgumentException(); } capacity = size = 0; pageSize = (1<<e); exp = e; r = pageSize -1; bufferArrayList = new arrayList(); }
/** * Construct a FastLongBuffer instance with specified page size * @param e int (so that pageSize = (1<<e)) * @param c int (suggest initial capacity of ArrayList */ public FastLongBuffer(int e,int c) { if (e <= 0) { throw new IllegalArgumentException(); } capacity = size = 0; pageSize = (1<<e); exp = e; r = pageSize -1; bufferArrayList = new arrayList(c); } /**
/** * ContextBuffer constructor comment. * inc is the # of int to be pushed/pop to/from the underlying storage * @param i int */ public ContextBuffer(int i) { super(); pageSize =1024; n = 10; //1<<10 == 1024 r = pageSize - 1; incSize = i; if (incSize<0) throw new IllegalArgumentException(); bufferArrayList = new arrayList(); } /**
/** * Constructor with adjustable buffer page size of the value bfz * The actually page size is 1<<e * @param e int is the size of the internal buffer */ public FastIntBuffer(int e) { if (e < 0) { throw new IllegalArgumentException(); } capacity = size = 0; pageSize = 1<<e; exp = e; r = pageSize -1; bufferArrayList = new arrayList(); } /**
/** * Constructor with adjustable buffer page size of the value bfz * @param e int */ public FastObjectBuffer(int e) { if (e < 0) { throw new IllegalArgumentException(); } capacity = size = 0; pageSize = 1<<e; exp = e; r = pageSize -1; bufferArrayList = new arrayList(); } /**
/** * Construct a FastLongBuffer instance with specified page size * @param e int (so that pageSize = (1<<e)) */ public FastLongBuffer(int e) { if (e <= 0) { throw new IllegalArgumentException(); } capacity = size = 0; pageSize = (1<<e); exp = e; r = pageSize -1; bufferArrayList = new arrayList(); }
/** * Constructor with adjustable buffer page size of the value bfz * @param e int */ public FastObjectBuffer(int e) { if (e < 0) { throw new IllegalArgumentException(); } capacity = size = 0; pageSize = 1<<e; exp = e; r = pageSize -1; bufferArrayList = new arrayList(); } /**
/** * Constructor with adjustable buffer page size of the value bfz * @param e int */ public FastObjectBuffer(int e) { if (e < 0) { throw new IllegalArgumentException(); } capacity = size = 0; pageSize = 1<<e; exp = e; r = pageSize -1; bufferArrayList = new arrayList(); } /**
/** * ContextBuffer constructor comment. * incSize is the # of int to be pushed/pop to/from the underlying storage * Creation date: (11/16/03 8:02:21 PM) * @param p int (pageSize equals (1<<p) * @param i int */ public ContextBuffer(int p, int i) { if (p<0)throw new IllegalArgumentException("invalid Buffer size"); pageSize = (1<<p); r = pageSize - 1; n = p; incSize = i; if (incSize < 0) throw new IllegalArgumentException("context buffer's incremental size must be greater than zero"); bufferArrayList = new arrayList(); } /**
arrayList randomGen = new arrayList(); randomGen.addRandom();