static L wrapLongBufferAsPtList(LongBuffer buf default new LongBuffer) { ret new RandomAccessAbstractList() { public int size() { ret buf.size(); } public Pt get(int i) { ret longToPt(buf.get(i)); } public Pt set(int i, Pt val) { Int old = get(i); buf.set(i, val); ret old; } public void remove(int i) { ret buf.; } public bool add(int i) { } }; }