Code example for AtomicReference

0
  private final ComponentMatcher matcher;
  private final Container root;
 
  private Component found;
 
  private final AtomicReference<ComponentLookupException> notFoundError = new AtomicReference<ComponentLookupException>();
 
  /** 
   * Creates a new {@link ComponentFoundCondition}. 
   * 
   * @param description the description of this condition. 
   * @param finder performs the search. 
   * @param matcher specifies the condition that the AWT or Swing {@code Component} we are looking for needs to match. 
   */ 
  public ComponentFoundCondition(@Nonnull String description, @Nonnull ComponentFinder finder,
      @Nonnull ComponentMatcher matcher) {
    this(description, finder, matcher, null);
  } 
 
  /** 
   * Creates a new {@link ComponentFoundCondition}.