mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-25 22:25:34 +00:00
stuff
This commit is contained in:
63
app/L/MaxValueFunction.java
Normal file
63
app/L/MaxValueFunction.java
Normal file
@@ -0,0 +1,63 @@
|
||||
package L;
|
||||
|
||||
import ax.CloneableImplInAxPackage;
|
||||
import ax.AxInterfaceAb;
|
||||
import ax.AbstractInAxPackage;
|
||||
import java.util.List;
|
||||
|
||||
public class MaxValueFunction extends AbstractInAxPackage {
|
||||
List a;
|
||||
|
||||
AxInterfaceAb b;
|
||||
|
||||
AxInterfaceAb c = null;
|
||||
|
||||
double d = Double.NaN;
|
||||
|
||||
long e = 0L;
|
||||
|
||||
protected H(List<AxInterfaceAb> paramList) {
|
||||
this.a = paramList;
|
||||
this.b = paramList.get(0);
|
||||
if (paramList.size() > 1)
|
||||
this.c = paramList.get(1);
|
||||
}
|
||||
|
||||
public double a(CloneableImplInAxPackage paramS) {
|
||||
double d = this.b.b(paramS);
|
||||
if (this.c != null && (c(paramS) - this.e) > this.c.b(paramS))
|
||||
this.d = Double.NaN;
|
||||
if (Double.isNaN(this.d) || d > this.d) {
|
||||
this.d = d;
|
||||
this.e = c(paramS);
|
||||
}
|
||||
return this.d;
|
||||
}
|
||||
|
||||
private long c(CloneableImplInAxPackage paramS) {
|
||||
return (long)(n.a()).b.b(paramS);
|
||||
}
|
||||
|
||||
public double b(CloneableImplInAxPackage paramS) {
|
||||
return a(paramS);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
stringBuilder.append("maxValue( ");
|
||||
for (byte b = 0; b < this.a.size(); b++) {
|
||||
AxInterfaceAb ab1 = this.a.get(b);
|
||||
stringBuilder.append(ab1.toString());
|
||||
if (b + 1 < this.a.size())
|
||||
stringBuilder.append(", ");
|
||||
}
|
||||
stringBuilder.append(" )");
|
||||
return stringBuilder.toString();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/L/H.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
Reference in New Issue
Block a user