google-nomulus/java/google/registry/batch
mcilwain 1790914058 Add Runnable overrides to ease use of Java 8 language features
Runnable and Callable are both @FunctionalInterfaces. The difference is
that Callable requires a return value whereas Runnable does not, so in
situations where we don't care about a return value, rather than having to
add an unnecessary 'return null;' at the end of the lambda, we can simply
use a non-returning Runnable instead.

Unfortunately, owing to legacy reasons, Runnable is not declared to throw
checked exceptions whereas Callable is, so in situations where checked
exceptions are thrown we still need to have a 'return null;' call at the
end.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=172935400
2017-10-24 16:53:47 -04:00
..
BatchComponent.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
BatchModule.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
BUILD Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
DeleteContactsAndHostsAction.java Add Runnable overrides to ease use of Java 8 language features 2017-10-24 16:53:47 -04:00
DeleteProberDataAction.java Add Runnable overrides to ease use of Java 8 language features 2017-10-24 16:53:47 -04:00
EntityIntegrityAlertsSchema.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ExpandRecurringBillingEventsAction.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
MapreduceEntityCleanupAction.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
MapreduceEntityCleanupUtil.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
RefreshDnsOnHostRenameAction.java Add Runnable overrides to ease use of Java 8 language features 2017-10-24 16:53:47 -04:00
ResaveAllEppResourcesAction.java Use transaction time when cloneProjectedAtTime()-ing within transaction 2017-10-04 16:16:45 -04:00
VerifyEntityIntegrityAction.java Run automatic Java 8 conversion over codebase 2017-10-10 12:09:41 -04:00
VerifyEntityIntegrityStreamer.java Run automatic Java 8 conversion over codebase 2017-10-10 12:09:41 -04:00