Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.ensembl.util
Class Counter

    java.lang.Object
      org.ensembl.util.Counter

public class Counter
extends java.lang.Object

Simple counter class. Useful for use in hashes.

Author:
  Craig Melsopp

Field Summary
`int` | `count`

Constructor Summary
`Counter(int initialValue)` Initialises counter.

Method Summary
`int` | `increment()` Increments count by 1;

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### count

    public int count

Constructor Detail

### Counter

    public Counter(int initialValue)

  Initialises counter.

Parameters:
  `initialValue` - initial value.

Method Detail

### increment

    public int increment()

  Increments count by 1;

  Returns:
    count after increment taken place.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD