Add a TypefaceEmojiRasterizer to the index.
(@NonNull final TypefaceEmojiRasterizer data)
| 213 | * |
| 214 | */ |
| 215 | @RestrictTo(RestrictTo.Scope.LIBRARY) |
| 216 | @VisibleForTesting |
| 217 | void put(@NonNull final TypefaceEmojiRasterizer data) { |
| 218 | Preconditions.checkNotNull(data, "emoji metadata cannot be null"); |
| 219 | Preconditions.checkArgument(data.getCodepointsLength() > 0, |
| 220 | "invalid metadata codepoint length"); |
| 221 | |
| 222 | mRootNode.put(data, 0, data.getCodepointsLength() - 1); |
| 223 | } |
| 224 | |
| 225 | /** |
| 226 | * Trie node that holds mapping from emoji codepoint(s) to TypefaceEmojiRasterizer. |
no test coverage detected