nl: returns a synchronized buffer backed by the given buffer . much like the synchronized collections returned by java.util.collections , you must manually synchronize on the returned buffer 's iterator to avoid non-deterministic behavior : buffer b = bufferutils.synchronizedbuffer mybuffer ; synchronized b iterator i = b.iterator ; while i.hasnext process i.next ; concode_field_sep Buffer EMPTY_BUFFER concode_field_sep Buffer predicatedBuffer concode_elem_sep Buffer transformedBuffer concode_elem_sep Buffer unmodifiableBuffer concode_elem_sep Buffer typedBuffer concode_elem_sep Buffer blockingBuffer
code: Buffer function ( Buffer arg0 ) { return SynchronizedBuffer . decorate ( arg0 ) ; }