@Test public void nullByDefault() { assertFalse(pendingTaskCollectionPointer.getAndSetNull().isPresent()); }
synchronized Optional<Collection<Task>> getAndSetNull() { final Collection<Task> cur = curTaskCollection; curTaskCollection = null; return Optional.ofNullable(cur); }
PendingTaskCollectionPointer { synchronized Optional<Collection<Task>> getAndSetNull() { final Collection<Task> cur = curTaskCollection; curTaskCollection = null; return Optional.ofNullable(cur); } }
PendingTaskCollectionPointer { synchronized Optional<Collection<Task>> getAndSetNull() { final Collection<Task> cur = curTaskCollection; curTaskCollection = null; return Optional.ofNullable(cur); } @Inject private  PendingTaskCollectionPointer(); }
PendingTaskCollectionPointer { synchronized Optional<Collection<Task>> getAndSetNull() { final Collection<Task> cur = curTaskCollection; curTaskCollection = null; return Optional.ofNullable(cur); } @Inject private  PendingTaskCollectionPointer(); static PendingTaskCollectionPointer newInstance(); }
PendingTaskCollectionPointer { synchronized Optional<Collection<Task>> getAndSetNull() { final Collection<Task> cur = curTaskCollection; curTaskCollection = null; return Optional.ofNullable(cur); } @Inject private  PendingTaskCollectionPointer(); static PendingTaskCollectionPointer newInstance();  }