| 1 |
|
package com.smartwerkz.jupload.classic.config; |
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
public class Message { |
| 8 |
|
public final String msgKey; |
| 9 |
|
public final Object[] params; |
| 10 |
|
|
| 11 |
|
public Message(String msgKey) { |
| 12 |
0 |
this(msgKey, new Object[0]); |
| 13 |
0 |
} |
| 14 |
|
|
| 15 |
|
public Message(String msgKey, Object param1) { |
| 16 |
0 |
this(msgKey, new Object[] { param1 }); |
| 17 |
0 |
} |
| 18 |
|
|
| 19 |
|
public Message(String msgKey, Object param1, Object param2) { |
| 20 |
0 |
this(msgKey, new Object[] { param1, param2 }); |
| 21 |
0 |
} |
| 22 |
|
|
| 23 |
|
public Message(String msgKey, Object param1, Object param2, Object param3) { |
| 24 |
0 |
this(msgKey, new Object[] { param1, param2, param3 }); |
| 25 |
0 |
} |
| 26 |
|
|
| 27 |
0 |
public Message(String msgKey, Object[] params) { |
| 28 |
0 |
this.msgKey = msgKey; |
| 29 |
0 |
this.params = params; |
| 30 |
0 |
} |
| 31 |
|
|
| 32 |
|
public String toString() { |
| 33 |
0 |
return Messages.get(msgKey, params); |
| 34 |
|
} |
| 35 |
|
} |