|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.xtend.util.stdlib.AbstractStatefulExtensions<java.lang.Integer>
org.eclipse.xtend.util.stdlib.CounterExtensions
public class CounterExtensions
A Counter (integer) associated to any object.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.xtend.util.stdlib.AbstractStatefulExtensions |
|---|
exeCtx |
| Constructor Summary | |
|---|---|
CounterExtensions()
|
|
| Method Summary | |
|---|---|
int |
counterDec(java.lang.Object o)
Decrements the counter |
int |
counterGet(java.lang.Object o)
Returns the counter. |
int |
counterInc(java.lang.Object o)
Increments the counter. |
int |
counterReset(java.lang.Object o)
resets the counter to '0'. |
int |
counterSet(java.lang.Object o,
int value)
Sets the counter |
protected java.lang.Integer |
getDefault(java.lang.Object o)
|
| Methods inherited from class org.eclipse.xtend.util.stdlib.AbstractStatefulExtensions |
|---|
get, getKey, getVars, newMap, set, setExecutionContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CounterExtensions()
| Method Detail |
|---|
public int counterReset(java.lang.Object o)
o - The context object for this counter.
public int counterInc(java.lang.Object o)
o - The context object for this counter.
public int counterDec(java.lang.Object o)
o - - context object
public int counterSet(java.lang.Object o,
int value)
o - - context objectvalue - - the counter value to be setpublic int counterGet(java.lang.Object o)
o - - context objectprotected java.lang.Integer getDefault(java.lang.Object o)
getDefault in class AbstractStatefulExtensions<java.lang.Integer>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||