decrements the reference count and returns whether the reference counter entered the disposed state . if the method returns true , the decrement operation disposed the counter . otherwise it returns false . concode_field_sep int disposeOnReferenceCount concode_elem_sep int referenceCount concode_elem_sep boolean isDisposed concode_elem_sep Object lock concode_field_sep boolean disposeIfNotUsed concode_elem_sep int get concode_elem_sep boolean isDisposed concode_elem_sep boolean increment
boolean function ( ) { synchronized ( lock ) { if ( isDisposed ) { return false ; } referenceCount -- ; if ( referenceCount <= disposeOnReferenceCount ) { isDisposed = true ; } return isDisposed ; } }