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

📄 vectorqueue.java

📁 短信发送
💻 JAVA
字号:
/*
 * VectorQueue.java
 *
 * Copyright (c) 2001 GlobaLoop LTD., Joseph Hartal, Ze'ev Bubis.
 * All Rights Reserved.
 *
 * You may study, use, modify, and distribute this software for any
 * purpose provided that this copyright notice appears in all copies.
 *
 * This software is provided WITHOUT WARRANTY either expressed or
 * implied.
 *
 */

package com.jdev.util;

import java.util.*;

public class VectorQueue implements IQueue
{
   private Vector myVec = new Vector();

   public Vector getVector()
   {
      return myVec;
   }
   public boolean isEmpty()
   {
      return myVec.isEmpty();
   }

   public void clear()
   {
      myVec.clear();
   }

   public void add(Object o)
   {
      myVec.add(o);
   }

   public Object remove()
   {
      Object o=myVec.get(0);
      myVec.remove(o);
      return o;
   }

   public int size()
   {
      return myVec.size();
   }
}

⌨️ 快捷键说明

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