Factory method for creating instances of Key. @param debugString a string used to describe this key, used for debugging. @param defaultValue default value to return when value for key not set @param Key type @return Key object @deprecated Use #create or {@link #createWithDefault
(String debugString, T defaultValue)
| 355 | * be removed. |
| 356 | */ |
| 357 | @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1869") |
| 358 | @Deprecated |
| 359 | public static <T> Key<T> of(String debugString, T defaultValue) { |
| 360 | Preconditions.checkNotNull(debugString, "debugString"); |
| 361 | return new Key<>(debugString, defaultValue); |
| 362 | } |
| 363 | |
| 364 | /** |
| 365 | * Factory method for creating instances of {@link Key}. The default value of the |
nothing calls this directly
no test coverage detected