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

## rabbit.util
Class Counter

    java.lang.Object
      rabbit.util.Counter

    public class Counter

extends java.lang.Object

This class counts different messages

Constructor Summary
`Counter()`

Method Summary
`int` | `get(java.lang.String key)` get the current count for an event.
`void` | `inc(java.lang.String log)` increase a logentry.
`java.util.Set<java.lang.String>` | `keys()` get all events

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

Constructor Detail

### Counter

    public Counter()

Method Detail

### inc

    public void inc(java.lang.String log)

  increase a logentry.

  Parameters:
    `log` - the event to increase

### keys

    public java.util.Set<java.lang.String> keys()

  get all events

  Returns:
    an Enumeration of all events

### get

    public int get(java.lang.String key)

  get the current count for an event.

  Parameters:
    `key` - the event were intrested in
  Returns:
    the current count of event.

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