Пример #1
0
  /**
   * Accessor for whether an element is contained in this Set.
   *
   * @param element The element
   * @return Whether it is contained.
   */
  public boolean contains(Object element) {
    if (useCache && isCacheLoaded) {
      // If the "delegate" is already loaded, use it
      return delegate.contains(element);
    } else if (backingStore != null) {
      return backingStore.contains(ownerOP, element);
    }

    return delegate.contains(element);
  }