mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Refactor Guava functional methods to use lambdas
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=177027488
This commit is contained in:
parent
2ae496bfce
commit
bbe2584da4
47 changed files with 478 additions and 647 deletions
|
@ -14,9 +14,7 @@
|
|||
|
||||
package google.registry.model;
|
||||
|
||||
import com.google.common.base.Function;
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import com.googlecode.objectify.Key;
|
||||
import google.registry.model.billing.BillingEvent;
|
||||
import google.registry.model.billing.RegistrarBillingEntry;
|
||||
import google.registry.model.billing.RegistrarCredit;
|
||||
|
@ -113,15 +111,5 @@ public final class EntityClasses {
|
|||
SignedMarkRevocationList.class,
|
||||
TmchCrl.class);
|
||||
|
||||
/**
|
||||
* Function that converts an Objectify-registered class to its Datastore kind name.
|
||||
*
|
||||
* <p>Note that this mapping is not one-to-one, since polymorphic subclasses of an entity all have
|
||||
* the same Datastore kind. (In theory, two distinct top-level entities could also map to the same
|
||||
* kind since it's just {@code class.getSimpleName()}, but we test against that.)
|
||||
*/
|
||||
public static final Function<Class<? extends ImmutableObject>, String> CLASS_TO_KIND_FUNCTION =
|
||||
(Class<? extends ImmutableObject> clazz) -> Key.getKind(clazz);
|
||||
|
||||
private EntityClasses() {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue