public class DiagMessage extends Object
DiagMessage is a kind, a message key, and arguments. The message key will be expanded
 according to the user locale. Any arguments will then be interpolated into the localized message.
 By contrast, javax.tools.Diagnostic has just a string message.
| Constructor and Description | 
|---|
| DiagMessage(Diagnostic.Kind kind,
           @CompilerMessageKey String messageKey,
           Object... args)Create a DiagMessage. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(@Nullable Object obj) | 
| Object[] | getArgs()Returns the customized optional arguments for the message. | 
| Diagnostic.Kind | getKind()Returns the kind of this DiagMessage. | 
| @CompilerMessageKey String | getMessageKey()Returns the message key of this DiagMessage. | 
| int | hashCode() | 
| static List<DiagMessage> | mergeLists(List<DiagMessage> list1,
          List<DiagMessage> list2)Returns the concatenation of the lists. | 
| String | toString() | 
public DiagMessage(Diagnostic.Kind kind, @CompilerMessageKey String messageKey, Object... args)
kind - the kind of messagemessageKey - the message keyargs - the arguments that will be interpolated into the localized messagepublic Diagnostic.Kind getKind()
public @CompilerMessageKey String getMessageKey()
public Object[] getArgs()
@SideEffectFree public String toString()
public static List<DiagMessage> mergeLists(List<DiagMessage> list1, List<DiagMessage> list2)
list1 - a list of DiagMessage, or nulllist2 - a list of DiagMessage, or null