Searched defs:fallback (Results 1 - 6 of 6) sorted by relevance

/libcore/json/src/main/java/org/json/
H A DJSONArray.java345 * be coerced to a boolean. Returns {@code fallback} otherwise.
347 public boolean optBoolean(int index, boolean fallback) { argument
350 return result != null ? result : fallback;
379 * be coerced to a double. Returns {@code fallback} otherwise.
381 public double optDouble(int index, double fallback) { argument
384 return result != null ? result : fallback;
413 * can be coerced to an int. Returns {@code fallback} otherwise.
415 public int optInt(int index, int fallback) { argument
418 return result != null ? result : fallback;
447 * can be coerced to a long. Returns {@code fallback} otherwis
449 optLong(int index, long fallback) argument
482 optString(int index, String fallback) argument
[all...]
H A DJSONObject.java431 * can be coerced to a boolean, or {@code fallback} otherwise.
433 public boolean optBoolean(String name, boolean fallback) { argument
436 return result != null ? result : fallback;
465 * can be coerced to a double, or {@code fallback} otherwise.
467 public double optDouble(String name, double fallback) { argument
470 return result != null ? result : fallback;
499 * can be coerced to an int, or {@code fallback} otherwise.
501 public int optInt(String name, int fallback) { argument
504 return result != null ? result : fallback;
536 * can be coerced to a long, or {@code fallback} otherwis
540 optLong(String name, long fallback) argument
573 optString(String name, String fallback) argument
[all...]
/libcore/ojluni/src/lambda/java/java/lang/invoke/
H A DMethodHandles.java144 MethodHandle fallback) { return null; }
142 guardWithTest(MethodHandle test, MethodHandle target, MethodHandle fallback) argument
/libcore/ojluni/src/main/java/java/text/
H A DDecimalFormatSymbols.java737 * then that character is returned, otherwise {@code fallback} is returned.
742 public static char maybeStripMarkers(String symbol, char fallback) { argument
754 return fallback;
763 return fallback;
/libcore/ojluni/src/main/java/java/lang/invoke/
H A DMethodHandles.java3361 * If the guard fails, a fallback handle is called instead.
3370 * T fallback(A...,B...);
3375 * return fallback(a..., b...);
3380 * from the caller to the target or fallback as appropriate.
3383 * @param fallback method handle to call if test fails
3393 MethodHandle fallback) {
3396 MethodType ftype = fallback.type();
3398 throw misMatchedTypes("target and fallback types", ttype, ftype);
3411 return new Transformers.GuardWithTest(test, target, fallback);
3422 * If an exception matching the specified type is thrown, the fallback
3391 guardWithTest(MethodHandle test, MethodHandle target, MethodHandle fallback) argument
[all...]
H A DTransformers.java177 EmulatedStackFrame fallback = EmulatedStackFrame.create(handler.type());
180 fallback.setReference(0, th);
185 emulatedStackFrame.copyRangeTo(fallback, handlerArgsRange,
189 handler.invoke(fallback);
190 fallback.copyReturnValueTo(emulatedStackFrame);
205 private final MethodHandle fallback; field in class:Transformers.GuardWithTest
209 public GuardWithTest(MethodHandle test, MethodHandle target, MethodHandle fallback) { argument
214 this.fallback = fallback;
231 fallback
[all...]

Completed in 518 milliseconds