Package java.lang.ref

Examples of java.lang.ref.WeakReference.clear()


                // garbage-collected; let's take the opportunity to
                // clean up the cursors list anyway..
                it.remove();
               
            } else if (cursor == cur) {
                ref.clear();
                it.remove();
                break;
            }
        }
    }
View Full Code Here


            WeakReference ref = (WeakReference) it.next();
            Cursor cursor = (Cursor) ref.get();
            if (cursor != null) {
                // cursor is null if object has been garbage-collected
                cursor.invalidate();
                ref.clear();
            }
            it.remove();
        }
    }
View Full Code Here

                // garbage-collected; let's take the opportunity to
                // clean up the cursors list anyway..
                it.remove();

            } else if (cur == cursor) {
                ref.clear();
                it.remove();
                break;
            }
        }
    }
View Full Code Here

/* 288 */       if (cur == null)
/*     */       {
/* 292 */         it.remove();
/*     */       }
/* 294 */       else if (cur == cursor) {
/* 295 */         ref.clear();
/* 296 */         it.remove();
/* 297 */         break;
/*     */       }
/*     */     }
/*     */   }
View Full Code Here

/*  820 */       if (cursor == null)
/*      */       {
/*  824 */         it.remove();
/*      */       }
/*  826 */       else if (cursor == cur) {
/*  827 */         ref.clear();
/*  828 */         it.remove();
/*  829 */         break;
/*      */       }
/*      */     }
/*      */   }
View Full Code Here

/*  841 */       WeakReference ref = (WeakReference)it.next();
/*  842 */       Cursor cursor = (Cursor)ref.get();
/*  843 */       if (cursor != null)
/*      */       {
/*  845 */         cursor.invalidate();
/*  846 */         ref.clear();
/*      */       }
/*  848 */       it.remove();
/*      */     }
/*      */   }
/*      */
View Full Code Here

                // garbage-collected; let's take the opportunity to
                // clean up the cursors list anyway..
                it.remove();
               
            } else if (cursor == cur) {
                ref.clear();
                it.remove();
                break;
            }
        }
    }
View Full Code Here

            WeakReference ref = (WeakReference) it.next();
            Cursor cursor = (Cursor) ref.get();
            if (cursor != null) {
                // cursor is null if object has been garbage-collected
                cursor.invalidate();
                ref.clear();
            }
            it.remove();
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.