/Users/lyon/j4p/src/classUtils/pack/util/tp/FIFOQueue.java

1    package classUtils.pack.util.tp; 
2     
3    class FIFOQueue implements Queue { 
4     
5        private classUtils.pack.util.util.FIFOQueue q = new classUtils.pack.util.util.FIFOQueue(); 
6     
7        public void put(Runnable obj) { q.put(obj); } 
8        public Runnable get() { 
9            try { 
10               return (Runnable)q.get(); 
11           } catch(classUtils.pack.util.util.QueueEmptyException e) { 
12               return null; 
13           } 
14       } 
15    
16       public int size() { return q.size(); } 
17       public boolean isEmpty()  { return q.isEmpty(); } 
18   }