org.axiondb.util

Class CounterFile

class CounterFile extends Object

A persistent counter.

Version: $Revision: 1.4 $ $Date: 2004/08/12 01:24:50 $

Author: Rodney Waldhoff

Constructor Summary
CounterFile()
Method Summary
intcurrent()
Returns the current counter value.
intincrement()
Return the current counter value, then increment it.
static CounterFileload(File file)
voidsave(File file)

Constructor Detail

CounterFile

public CounterFile()

Method Detail

current

public int current()
Returns the current counter value.

Returns: current counter value

increment

public int increment()
Return the current counter value, then increment it.

load

public static CounterFile load(File file)

save

public void save(File file)