Sha256: b6cb0d01f3cc334eb22628c89248cbb26294119dd744d52d9d97b82290b99a3e

Contents?: true

Size: 1.44 KB

Versions: 119

Compression:

Stored size: 1.44 KB

Contents

/* 
 * $Id: Cache.java 124053 2005-01-04 01:24:35Z dfs $
 *
 * Copyright 2000-2005 The Apache Software Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


package org.apache.oro.util;


/**
 * An interface defining the basic functions of a cache.
 *
 * @version @version@
 * @since 1.0
 */
public interface Cache {

  public void addElement(Object key, Object value);

  public Object getElement(Object key);

  /**
   * Returns the number of elements in the cache, not to be confused with
   * the {@link #capacity()} which returns the number
   * of elements that can be held in the cache at one time.
   * <p>
   * @return  The current size of the cache (i.e., the number of elements
   *          currently cached).
   */
  public int size();


  /**
   * Returns the maximum number of elements that can be cached at one time.
   * <p>
   * @return The maximum number of elements that can be cached at one time.
   */
  public int capacity();

}

Version data entries

119 entries across 119 versions & 1 rubygems

Version Path
rhodes-3.5.1.12 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java
rhodes-3.3.5 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java
rhodes-3.4.2 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java
rhodes-3.3.4 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java
rhodes-3.3.3 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java
rhodes-3.3.3.beta.4 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java
rhodes-3.3.3.beta.3 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java
rhodes-3.3.3.beta.2 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java
rhodes-3.3.3.beta.1 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java
rhodes-3.3.2 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java
rhodes-3.3.2.beta.7 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java
rhodes-3.3.2.beta.6 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java
rhodes-3.3.2.beta.5 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java
rhodes-3.3.2.beta.4 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java
rhodes-3.3.2.beta.3 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java
rhodes-3.3.2.beta.2 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java
rhodes-3.3.2.beta.1 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java
rhodes-3.3.1 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java
rhodes-3.3.0 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java
rhodes-3.3.0.beta.3 platform/bb/RubyVM/src/org/apache/oro/util/Cache.java