public static interface JsMessage.IdGenerator
Modifier and Type | Method and Description |
---|---|
String |
generateId(String meaning,
List<CharSequence> messageParts)
Generate the ID for the message.
|
String generateId(String meaning, List<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-2016 Google. All Rights Reserved.