Package org.marketcetera.util.l10n
Class MessageInfoPair
- java.lang.Object
-
- org.marketcetera.util.l10n.MessageInfoPair
-
public class MessageInfoPair extends Object
Holder of dual meta-information about a message. Both meta-information components must have the same message key, hence containing meta-information for two different representations of the same message.- Since:
- 0.6.0
- Version:
- $Id: MessageInfoPair.java 16154 2012-07-14 16:34:05Z colin $
- Author:
- tlerios@marketcetera.com
-
-
Field Summary
Fields Modifier and Type Field Description static MessageInfoPair[]EMPTY_ARRAYAn empty array of class instances.private MessageInfomDstInfoprivate MessageInfomSrcInfo
-
Constructor Summary
Constructors Constructor Description MessageInfoPair(MessageInfo srcInfo, MessageInfo dstInfo)Creates a new meta-information holder from the given component holders.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)MessageInfogetDstInfo()Returns the receiver's destination meta-information.MessageInfogetSrcInfo()Returns the receiver's source meta-information.inthashCode()
-
-
-
Field Detail
-
EMPTY_ARRAY
public static final MessageInfoPair[] EMPTY_ARRAY
An empty array of class instances.
-
mSrcInfo
private MessageInfo mSrcInfo
-
mDstInfo
private MessageInfo mDstInfo
-
-
Constructor Detail
-
MessageInfoPair
public MessageInfoPair(MessageInfo srcInfo, MessageInfo dstInfo)
Creates a new meta-information holder from the given component holders. These holders both contain meta-information for two different representations of the same message.- Parameters:
srcInfo- The source meta-information.dstInfo- The destination meta-information.
-
-
Method Detail
-
getSrcInfo
public MessageInfo getSrcInfo()
Returns the receiver's source meta-information.- Returns:
- The meta-information.
-
getDstInfo
public MessageInfo getDstInfo()
Returns the receiver's destination meta-information.- Returns:
- The meta-information.
-
-