KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > collections > _AbstractOzoneMap_values_iterator


1 /*
2  * _AbstractOzoneMap_values_iterator.java
3  * $Id: _AbstractOzoneMap_values_iterator.java,v 1.2 2003/02/02 17:21:41 leomekenkamp Exp $
4  * This file is based on a part of AbstractMap.java from GNU Classpath. Quote:
5  
6 AbstractMap.java -- Abstract implementation of most of Map
7 Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
8  
9 This file is part of GNU Classpath.
10  
11 GNU Classpath is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 2, or (at your option)
14 any later version.
15  
16 GNU Classpath is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
20  
21 You should have received a copy of the GNU General Public License
22 along with GNU Classpath; see the file COPYING. If not, write to the
23 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
24 02111-1307 USA.
25  
26 Linking this library statically or dynamically with other modules is
27 making a combined work based on this library. Thus, the terms and
28 conditions of the GNU General Public License cover the whole
29 combination.
30  
31 As a special exception, the copyright holders of this library give you
32 permission to link this library with independent modules to produce an
33 executable, regardless of the license terms of these independent
34 modules, and to copy and distribute the resulting executable under
35 terms of your choice, provided that you also meet, for each linked
36 independent module, the terms and conditions of the license of that
37 module. An independent module is a module which is not derived from
38 or based on this library. If you modify this library, you may extend
39 this exception to your version of the library, but you are not
40 obligated to do so. If you do not wish to do so, delete this
41 exception statement from your version.
42  
43  * end quote.
44  *
45  * This file is licenced under the same conditions as its original (GPL +
46  * "special exception").
47  */

48
49 package org.ozoneDB.collections;
50
51 import java.io.Serializable JavaDoc;
52 import java.util.Iterator JavaDoc;
53 import java.util.Map JavaDoc;
54
55 /**
56  * Do not use this class directly.
57  * This should be an inner class; unfortunately ozone does not support those yet.
58  */

59 public class _AbstractOzoneMap_values_iterator implements Iterator JavaDoc, Serializable JavaDoc {
60     
61     private Iterator JavaDoc mapIterator;
62     
63     /** Creates a new instance of AbstractDbMap_ValuesImpl_IteratorImpl */
64     public _AbstractOzoneMap_values_iterator(Iterator JavaDoc iterator) {
65         this.mapIterator = iterator;
66     }
67
68     public boolean hasNext() {
69         return mapIterator.hasNext();
70     }
71
72     public Object JavaDoc next() {
73         return ((Map.Entry JavaDoc) mapIterator.next()).getValue();
74     }
75
76     public void remove() {
77         mapIterator.remove();
78     }
79 }
Popular Tags