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

📄 queueconsumer.java

📁 Java游戏高级编程!!很不错的!!!Java游戏高级编程!!很不错的
💻 JAVA
字号:
     package com.croftsoft.core.util.consumer;     import com.croftsoft.core.lang.NullArgumentException;     import com.croftsoft.core.role.Consumer;     import com.croftsoft.core.util.queue.Queue;

     /*********************************************************************
     * A Consumer that appends objects to a Queue.
     *
     * @version     *   2003-06-10     * @since     *   2003-06-10     * @author     *   <a href="http://www.croftsoft.com/">David Wallace Croft</a>     *********************************************************************/

     public final class  QueueConsumer       implements Consumer
     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////
     {     private final Queue  queue;     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////
     public  QueueConsumer ( Queue  queue )     //////////////////////////////////////////////////////////////////////
     {       NullArgumentException.check ( this.queue = queue );     }     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////
     public void  consume ( Object  o )     //////////////////////////////////////////////////////////////////////     {       queue.append ( o );     }
     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////
     }

⌨️ 快捷键说明

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