View Javadoc

1   package org.wsmostudio.bpmo.ui.editor.layout;
2   /*
3    wsmo4j - a WSMO API and Reference Implementation
4   
5    Copyright (c) 2004-2005, OntoText Lab. / SIRMA
6   
7    This library is free software; you can redistribute it and/or modify it under
8    the terms of the GNU Lesser General Public License as published by the Free
9    Software Foundation; either version 2.1 of the License, or (at your option)
10   any later version.
11   This library is distributed in the hope that it will be useful, but WITHOUT
12   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13   FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14   details.
15   You should have received a copy of the GNU Lesser General Public License along
16   with this library; if not, write to the Free Software Foundation, Inc.,
17   59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18   */
19  
20  import cytoscape.util.intr.IntIterator;
21  
22  
23  public class IntIteratorImpl implements IntIterator {
24      private int [] internal;
25      private int index = 0;
26      
27      public IntIteratorImpl(int[] aInternal) {        
28          internal = aInternal;
29      }
30  
31      public boolean hasNext() {
32          return index < internal.length;
33      }
34  
35      public int nextInt() {
36          return internal[index++] ;
37      }
38  
39  }