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

📄 withidutils.java

📁 主要是对串口驱动的的一些控制源码!!! 在下载javacomm20-win32.zip后就可以使用。
💻 JAVA
字号:
// Copyright <applicate>, 2002. All Rights Reserved.

// This software is the proprietary information of www.applicate.de.

// Use is subject to license terms.



package de.applicate.util.lang;







import java.util.HashMap;



public abstract class WithIDUtils {

    /**

     * @param  _withID  Parameter name is self-explanatory!

     * @return          HashMap with <br>

     *               Keys = new Integer(_enums[i].getID()<br>

     *               Values = _withID[i]

     */

    public static HashMap getHashMapOfIDs(final WithID[] _withID) {

        if ((null == _withID) || (_withID.length == 0)) {

            return null;

        }

        int      nCount   = _withID.length;

        HashMap  hashMap  = new HashMap(nCount);



        for (int i = 0; i < nCount; i++) {

            hashMap.put(new Integer(_withID[i].getID()), _withID[i]);

        }

        return hashMap;

    }

}

⌨️ 快捷键说明

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