⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 countrycache.java

📁 噶额外噶外骨骼感广泛高热感 就 啊啊
💻 JAVA
字号:
/*
 * @author                        : Neelesh
 * @Version                       : 1.0
 *
 * Development Environment        : Oracle 9i JDeveloper
 * Name of the File               : CountryCache.java
 * Creation/Modification History  :
 *
 * Neelesh    04-Feb-2003      Created
 *
 */
package oracle.otnsamples.vsm.services;


// Value Object classes
import oracle.otnsamples.vsm.services.data.Country;


/**
 * This class is used as a cache of countries.It is initialised once by
 * MallNavigation bean and used.
 */
public final class CountryCache {

  // Cached list of Country objects
  private static Country[] countries;

  /**
   * The constructor is made private so that other classes cannot instantiate
   * this class indiscriminately
   */
  private CountryCache() {
  }

  /**
   * This method returns an array of cached country objects
   *
   * @return <b>Country[]</b> -An array of Country objects
   */
  public static Country[] getCountries() {

    return countries;
  }
  /**
   * This method sets the cache content to a new list of countries
   *
   * @param <b>countries</b> An array of Country objects
   */
  public synchronized static void setCountries(Country[] newCountries) {
    countries = newCountries;
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -