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)
| 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> { |
no outgoing calls
no test coverage detected