jvmMain.com.apollographql.apollo.api.internal.Functions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apollo-api-jvm Show documentation
Show all versions of apollo-api-jvm Show documentation
Apollo GraphQL API classes
package com.apollographql.apollo.api.internal;
import org.jetbrains.annotations.Nullable;
import static com.apollographql.apollo.api.internal.Utils.checkNotNull;
public class Functions {
/**
* Returns the identity function.
*/
// implementation is "fully variant"; E has become a "pass-through" type
public static Function identity() {
return (Function) IdentityFunction.INSTANCE;
}
// enum singleton pattern
private enum IdentityFunction implements Function
© 2015 - 2025 Weber Informatics LLC | Privacy Policy