Пример #1
0
  /**
   * Accessor for the size of the TreeSet.
   *
   * @return The size.
   */
  public int size() {
    if (useCache && isCacheLoaded) {
      // If the "delegate" is already loaded, use it
      return delegate.size();
    } else if (backingStore != null) {
      return backingStore.size(ownerOP);
    }

    return delegate.size();
  }