increments the reference count and returns whether it was successful . if the method returns false , the counter has already been disposed . otherwise it returns true . 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 boolean decrement concode_elem_sep int get concode_elem_sep boolean isDisposed
boolean function ( ) { synchronized ( lock ) { if ( isDisposed ) { return false ; } referenceCount ++ ; return true ; } }