PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/webportal/src/main/java/au/org/emii/portal/util/Sequence.java

http://alageospatialportal.googlecode.com/
Java | 22 lines | 16 code | 6 blank | 0 comment | 0 complexity | fbc36c76bc5b8b4713e74236a26ec43c MD5 | raw file
 1package au.org.emii.portal.util;
 2
 3public class Sequence {
 4	private int value;
 5	
 6	public Sequence() {
 7		value = 0;
 8	}
 9	
10	public Sequence(int initialValue) {
11		value = initialValue;
12	}
13	
14	public int increment() {
15		return ++value;
16	}
17	
18	public int getValue() {
19		return value;
20	}
21	
22}