pub fn add_ref(&mut self, oid : JavaObjectId) {
		// if this is a local object, addref it
		match self.owned_objects.find_mut(&oid) {
			Some(obj) => {
				obj.intern_add_ref();
				return
			},
			// fallthru
			None => () 
		}
		// forward request to ObjectBroker for remote objects
		let op = OB_REMOTE_OBJECT_OP(self.tid, oid, REMOTE_ADD_REF);
		self.get_thread().send_message(op);
	}
// ----------------------------------------------
// AddRef a specific java object. This works both for local
// objects (i.e. owned by current thread) and for remote
// objects.
AddRef a specific java object. This works both for local
objects  and for remote
objects.
AddRef a specific java object . This works both for local objects and for remote objects .
pub fn add_ref(&mut self, oid : JavaObjectId) {
		// if this is a local object, addref it
		match self.owned_objects.find_mut(&oid) {
			Some(obj) => {
				obj.intern_add_ref();
				return
			},
			// fallthru
			None => () 
		}
		// forward request to ObjectBroker for remote objects
		let op = OB_REMOTE_OBJECT_OP(self.tid, oid, REMOTE_ADD_REF);
		self.get_thread().send_message(op);
	}
pub fn add_ref ( & mut self , oid : JavaObjectId ) { // if this is a local object, addref it match self . owned_objects . find_mut ( & oid ) { Some ( obj ) => { obj . intern_add_ref ( ) ; return } , // fallthru None => ( ) } // forward request to ObjectBroker for remote objects let op = OB_REMOTE_OBJECT_OP ( self . tid , oid , REMOTE_ADD_REF ) ; self . get_thread ( ) . send_message ( op ) ; }
AddRef a specific java object.
AddRef a specific java object .
&mut self
oid
JavaObjectId