1 16 package org.apache.commons.collections.buffer; 17 18 import org.apache.commons.collections.Buffer; 19 import org.apache.commons.collections.collection.AbstractCollectionDecorator; 20 21 31 public abstract class AbstractBufferDecorator extends AbstractCollectionDecorator implements Buffer { 32 33 37 protected AbstractBufferDecorator() { 38 super(); 39 } 40 41 47 protected AbstractBufferDecorator(Buffer buffer) { 48 super(buffer); 49 } 50 51 56 protected Buffer getBuffer() { 57 return (Buffer) getCollection(); 58 } 59 60 public Object get() { 62 return getBuffer().get(); 63 } 64 65 public Object remove() { 66 return getBuffer().remove(); 67 } 68 69 } 70 | Popular Tags |