public static interface JsMessage.IdGenerator
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generateId(java.lang.String meaning,
java.util.List<java.lang.CharSequence> messageParts)
Generate the ID for the message.
|
java.lang.String generateId(java.lang.String meaning,
java.util.List<java.lang.CharSequence> messageParts)
meaning - The programmer-specified meaning. If no @meaning
annotation appears, we will use the name of the variable it's
assigned to. If the variable is unnamed, then we will just
use a fingerprint of the message.messageParts - The parts of the message, including the main
message text.Copyright © 2009-2020 Google. All Rights Reserved.