public class org.apache.commons.math.util.Incrementor extends java.lang.Object
{
private int maximalCount;
private int count;
private final org.apache.commons.math.util.Incrementor$MaxCountExceededCallback maxCountCallback;
public void <init>()
{
org.apache.commons.math.util.Incrementor v;
v := @this: org.apache.commons.math.util.Incrementor;
specialinvoke v.<org.apache.commons.math.util.Incrementor: void <init>(int)>(0);
return;
}
public void <init>(int)
{
int v;
org.apache.commons.math.util.Incrementor$1 v;
org.apache.commons.math.util.Incrementor v;
v := @this: org.apache.commons.math.util.Incrementor;
v := @parameter: int;
v = new org.apache.commons.math.util.Incrementor$1;
specialinvoke v.<org.apache.commons.math.util.Incrementor$1: void <init>()>();
specialinvoke v.<org.apache.commons.math.util.Incrementor: void <init>(int,org.apache.commons.math.util.Incrementor$MaxCountExceededCallback)>(v, v);
return;
}
public void <init>(int, org.apache.commons.math.util.Incrementor$MaxCountExceededCallback) throws org.apache.commons.math.exception.NullArgumentException
{
org.apache.commons.math.exception.NullArgumentException v;
org.apache.commons.math.util.Incrementor$MaxCountExceededCallback v;
int v;
org.apache.commons.math.util.Incrementor v;
v := @this: org.apache.commons.math.util.Incrementor;
v := @parameter: int;
v := @parameter: org.apache.commons.math.util.Incrementor$MaxCountExceededCallback;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<org.apache.commons.math.util.Incrementor: int count> = 0;
if v != null goto label;
v = new org.apache.commons.math.exception.NullArgumentException;
specialinvoke v.<org.apache.commons.math.exception.NullArgumentException: void <init>()>();
throw v;
label:
v.<org.apache.commons.math.util.Incrementor: int maximalCount> = v;
v.<org.apache.commons.math.util.Incrementor: org.apache.commons.math.util.Incrementor$MaxCountExceededCallback maxCountCallback> = v;
return;
}
public void setMaximalCount(int)
{
int v;
org.apache.commons.math.util.Incrementor v;
v := @this: org.apache.commons.math.util.Incrementor;
v := @parameter: int;
v.<org.apache.commons.math.util.Incrementor: int maximalCount> = v;
return;
}
public int getMaximalCount()
{
int v;
org.apache.commons.math.util.Incrementor v;
v := @this: org.apache.commons.math.util.Incrementor;
v = v.<org.apache.commons.math.util.Incrementor: int maximalCount>;
return v;
}
public int getCount()
{
int v;
org.apache.commons.math.util.Incrementor v;
v := @this: org.apache.commons.math.util.Incrementor;
v = v.<org.apache.commons.math.util.Incrementor: int count>;
return v;
}
public boolean canIncrement()
{
int v, v;
boolean v;
org.apache.commons.math.util.Incrementor v;
v := @this: org.apache.commons.math.util.Incrementor;
v = v.<org.apache.commons.math.util.Incrementor: int count>;
v = v.<org.apache.commons.math.util.Incrementor: int maximalCount>;
if v >= v goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
public void incrementCount(int) throws org.apache.commons.math.exception.MaxCountExceededException
{
int v, v;
org.apache.commons.math.util.Incrementor v;
v := @this: org.apache.commons.math.util.Incrementor;
v := @parameter: int;
v = 0;
label:
if v >= v goto label;
virtualinvoke v.<org.apache.commons.math.util.Incrementor: void incrementCount()>();
v = v + 1;
goto label;
label:
return;
}
public void incrementCount() throws org.apache.commons.math.exception.MaxCountExceededException
{
org.apache.commons.math.util.Incrementor$MaxCountExceededCallback v;
int v, v, v, v;
org.apache.commons.math.util.Incrementor v;
v := @this: org.apache.commons.math.util.Incrementor;
v = v.<org.apache.commons.math.util.Incrementor: int count>;
v = v + 1;
v.<org.apache.commons.math.util.Incrementor: int count> = v;
v = v.<org.apache.commons.math.util.Incrementor: int maximalCount>;
if v <= v goto label;
v = v.<org.apache.commons.math.util.Incrementor: org.apache.commons.math.util.Incrementor$MaxCountExceededCallback maxCountCallback>;
v = v.<org.apache.commons.math.util.Incrementor: int maximalCount>;
interfaceinvoke v.<org.apache.commons.math.util.Incrementor$MaxCountExceededCallback: void trigger(int)>(v);
label:
return;
}
public void resetCount()
{
org.apache.commons.math.util.Incrementor v;
v := @this: org.apache.commons.math.util.Incrementor;
v.<org.apache.commons.math.util.Incrementor: int count> = 0;
return;
}
}