mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Run automatic Java 8 conversion over codebase
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=171174380
This commit is contained in:
parent
44df5da771
commit
5edb7935ed
190 changed files with 2312 additions and 3096 deletions
|
@ -116,17 +116,12 @@ public final class EntityClasses {
|
|||
/**
|
||||
* 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.)
|
||||
* <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 =
|
||||
new Function<Class<? extends ImmutableObject>, String>() {
|
||||
@Override
|
||||
public String apply(Class<? extends ImmutableObject> clazz) {
|
||||
return Key.getKind(clazz);
|
||||
}
|
||||
};
|
||||
(Class<? extends ImmutableObject> clazz) -> Key.getKind(clazz);
|
||||
|
||||
private EntityClasses() {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue