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 }