All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.scalar.CoercingUtil Maven / Gradle / Ivy

There is a newer version: 230521-nf-execution
Show newest version
package graphql.scalar;

import graphql.Internal;

@Internal
class CoercingUtil {
    static boolean isNumberIsh(Object input) {
        return input instanceof Number || input instanceof String;
    }

    static String typeName(Object input) {
        if (input == null) {
            return "null";
        }

        return input.getClass().getSimpleName();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy