I've stumbled upon the following code:
public class PluginResult {
public PluginResult(Status status) {
this(status, PluginResult.StatusMessages[status.ordinal()]); //this line
}
public PluginResult(Status status, String message) {
this.status = status.ordinal();
this.messageType = message == null ? MESSAGE_TYPE_NULL : MESSAGE_TYPE_STRING;
this.strMessage = message;
}
I'm wondering what it does on this line:
this(status, PluginResult.StatusMessages[status.ordinal()]);
Is it calling another overloaded constructor of the same class?