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

📄 masterchannellist.java

📁 一个用java写的地震分析软件(无源码)
💻 JAVA
字号:
package org.trinet.jasi;

/** Static ChannelList that can be shared by modules without passing a reference.
*
* @see: ChannelList
*/
public class MasterChannelList {

     static  ChannelList chanList = null;

     private MasterChannelList() {
     }

     /** Set the shared ChannelList. */
     public static void set (ChannelList list) {

            chanList = list;
     }

     /** Returns 'true' if this list is null or empty. */
     public static boolean isEmpty() {

            if (chanList == null) return true;
            return chanList.isEmpty();
     }

     /** Return the shared ChannelList. */
     public static ChannelList get () {

            return chanList;
     }

     // main for testing

     /*
     public static void main(String[] args) {

            new DataSource();

            System.out.println("Reading channel list.");
            MasterChannelList.set(ChannelList.smartLoad());

            MasterChannelList.get().dump();
            System.out.println("Total channels = "+  MasterChannelList.get().size());
     }
     */
} 

⌨️ 快捷键说明

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