org.marketcetera.util.l10n
Class MessageInfoPair

java.lang.Object
  extended by 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
static MessageInfoPair[] EMPTY_ARRAY
          An empty array of class instances.
 
Constructor Summary
MessageInfoPair(MessageInfo srcInfo, MessageInfo dstInfo)
          Creates a new meta-information holder from the given component holders.
 
Method Summary
 boolean equals(Object other)
           
 MessageInfo getDstInfo()
          Returns the receiver's destination meta-information.
 MessageInfo getSrcInfo()
          Returns the receiver's source meta-information.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_ARRAY

public static final MessageInfoPair[] EMPTY_ARRAY
An empty array of class instances.

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.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object


Copyright © 2012. All Rights Reserved.