Show Menu
Cheatography

Wasde Cheat Sheet (DRAFT) by

Jwnwndbwjsbsbsbwhwhsgsgsbshs

This is a draft cheat sheet. It is a work in progress and is not finished yet.

IPred

 
class string­Len­Gre­ater5 implements IPred<­Str­ing> {
public boolean apply(­String s) {
return s.length() > 5
}
}

IFunc

 
class oneIfTrue implements IFunc<­Boo­lean, Intege­r> {
public int apply(­boolean b) {
if b {
return 1;
}
else {
return 0;
}
}
}

ICompa­rator

 
class compar­eNu­mbers implements ICompa­rat­or<­Dou­ble> {
public int apply(­double a, double b) {
if (a > b) {
return 1;
}
else if (a == b) {
return 0;
}
else {
return -1;
}
}
}