Debian Codegraph @

debian/additionalSrc/trove4j/util/src/gnu/trove/generate/TPIterator.template

raw
1 ///////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2001, Eric D. Friedman All Rights Reserved.
3 //
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 //
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 ///////////////////////////////////////////////////////////////////////////////
18 // THIS FILE IS AUTOGENERATED, PLEASE DO NOT EDIT OR ELSE
19 package gnu.trove;
20
21 /**
22 * Iterator for #e# collections.
23 *
24 * @author Eric D. Friedman
25 */
26
27 public class T#E#Iterator extends TPrimitiveIterator {
28 /**
29 * the collection on which the iterator operates
30 */
31 private final T#E#Hash _hash;
32
33 /**
34 * Creates a T#E#Iterator for the elements in the specified collection.
35 */
36 public T#E#Iterator(T#E#Hash hash) {
37 super(hash);
38 _hash = hash;
39 }
40
41 /**
42 * Advances the iterator to the next element in the underlying collection
43 * and returns it.
44 *
45 * @return the next #e# in the collection
46 * @throws java.util.NoSuchElementException
47 * if the iterator is already exhausted
48 */
49 public #e# next() {
50 moveToNextIndex();
51 return _hash._set[_index];
52 }
53 }// T#E#Iterator