Exemple #1
0
 private static String not(Object... objects) {
   logAssert(objects.length == 1);
   logAssert(objects[0] instanceof Integer);
   return IfPPController.evaluateIntToBoolean((Integer) objects[0])
       ? IfPPController.FALSE_STRING
       : IfPPController.TRUE_STRING;
 }
Exemple #2
0
 private static String questionColon(Object... objects) {
   logAssert(objects.length == 3 && objects[0] instanceof Integer);
   return IfPPController.evaluateIntToBoolean((Integer) objects[0])
       ? objects[1].toString()
       : objects[2].toString();
 }