Public Member Functions | |
| int | getCounter (Object key) |
| Returns the value of a counter object, creating the counter if it not yet exists. | |
| int | incrementCounter (Object key) |
| Increments a counter and returns the new value. | |
Protected Member Functions | |
| void | doIncrementCounter (MutableInteger counter) |
| Strategy method that increments a counter's value. | |
| int | doGetInitialCounterValue () |
| Strategy method to return the initial value for all newly-created counter. | |
| MutableInteger | doGetCounter (Object key) |
| Strategy method to that returns a counter object, creating the counter if it not yet exists. | |
| Map | getCounters () |
| Returns the counter mappings. | |
| MutableInteger | createMutableInteger (int init) |
| Factory method that creates the MutableInteger objects used as counters. | |
| Map | createCounters () |
| Factory method that creates the Map object used to maintain the counters. | |
Private Attributes | |
| Map | _counters = null |
| The (Object, MutableInteger) mapping. | |
Definition at line 69 of file CounterMap.java.
|
|
Factory method that creates the Map object used to maintain the counters.
Definition at line 155 of file CounterMap.java. Referenced by com.arcle.rmt.j2se.util.CounterMap.getCounters(). |
|
|
Factory method that creates the MutableInteger objects used as counters.
Definition at line 148 of file CounterMap.java. Referenced by com.arcle.rmt.j2se.util.CounterMap.doGetCounter(). |
|
|
Strategy method to that returns a counter object, creating the counter if it not yet exists.
Definition at line 117 of file CounterMap.java. References com.arcle.rmt.j2se.util.CounterMap.createMutableInteger(), com.arcle.rmt.j2se.util.CounterMap.doGetInitialCounterValue(), and com.arcle.rmt.j2se.util.CounterMap.getCounters(). Referenced by com.arcle.rmt.j2se.util.CounterMap.getCounter(), and com.arcle.rmt.j2se.util.CounterMap.incrementCounter(). |
|
|
Strategy method to return the initial value for all newly-created counter.
Definition at line 107 of file CounterMap.java. Referenced by com.arcle.rmt.j2se.util.CounterMap.doGetCounter(). |
|
|
Strategy method that increments a counter's value.
Definition at line 98 of file CounterMap.java. References com.arcle.rmt.xplat.util.MutableInteger.value. Referenced by com.arcle.rmt.j2se.util.CounterMap.incrementCounter(). |
|
|
Returns the value of a counter object, creating the counter if it not yet exists.
Definition at line 77 of file CounterMap.java. References com.arcle.rmt.j2se.util.CounterMap.doGetCounter(), and com.arcle.rmt.xplat.util.MutableInteger.value. |
|
|
Returns the counter mappings.
Definition at line 134 of file CounterMap.java. References com.arcle.rmt.j2se.util.CounterMap._counters, and com.arcle.rmt.j2se.util.CounterMap.createCounters(). Referenced by com.arcle.rmt.j2se.util.CounterMap.doGetCounter(). |
|
|
Increments a counter and returns the new value.
Definition at line 85 of file CounterMap.java. References com.arcle.rmt.j2se.util.CounterMap.doGetCounter(), com.arcle.rmt.j2se.util.CounterMap.doIncrementCounter(), and com.arcle.rmt.xplat.util.MutableInteger.value. |
|
|
The (Object, MutableInteger) mapping.
Definition at line 165 of file CounterMap.java. Referenced by com.arcle.rmt.j2se.util.CounterMap.getCounters(). |
1.3.5