Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

Counter.java

00001 package gov.nasa.arc.ase.util;
00002 
00003 public class Counter {
00004   private int counter = 0;
00005 
00006   public Counter() {
00007   }  
00008   public Counter(int value) {
00009     counter = value;
00010   }  
00011   public int get() {
00012     return counter;
00013   }  
00014   public void inc() {
00015     counter++;
00016   }  
00017   public void inc(int value) {
00018     counter += value;
00019   }  
00020   public String toString() {
00021     return Integer.toString(counter);
00022   }  
00023 }

Generated at Thu Feb 7 06:43:09 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001