Package ch.qos.cal10n
Class MessageParameterObj
- java.lang.Object
-
- ch.qos.cal10n.MessageParameterObj
-
public class MessageParameterObj extends java.lang.ObjectHolds data relevant for a deferred message lookup. This is useful when the appropriate locale is unknown at the time or place where the message key and message args are emitted. For example, a low level library might wish to emit a localized message but it is only at the UI (user interface) layer that the locale is known. As another example, imagine that the host where the localized messages are presented to the user is in a different locale, e.g. Japan, than the locale of the source host. e.g. US.Instances of this class are intended to be immutable, subject to the immutability of the supplied args.
-
-
Constructor Summary
Constructors Constructor Description MessageParameterObj(java.lang.Enum<?> key, java.lang.Object... args)Constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.Object[]getArgs()java.lang.Enum<?>getKey()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getKey
public java.lang.Enum<?> getKey()
-
getArgs
public java.lang.Object[] getArgs()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-