MCPcopy Create free account
hub / github.com/grpc/grpc-java / getMarshaller

Method getMarshaller

api/src/main/java/io/grpc/Metadata.java:850–856  ·  view source on GitHub ↗

Gets this keys (implementation-specific) marshaller, or null if the marshaller is not of the given type. @param marshallerClass The type we expect the marshaller to be. @return the marshaller object for this key, or null.

(Class<M> marshallerClass)

Source from the content-addressed store, hash-verified

848 * @return the marshaller object for this key, or null.
849 */
850 @Nullable
851 final <M> M getMarshaller(Class<M> marshallerClass) {
852 if (marshallerClass.isInstance(marshaller)) {
853 return marshallerClass.cast(marshaller);
854 }
855 return null;
856 }
857 }
858
859 private static class BinaryKey<T> extends Key<T> {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected