All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.marketcetera.util.log.I18NBoundMessage2P Maven / Gradle / Ivy

There is a newer version: 4.1.1
Show newest version
package org.marketcetera.util.log;

import java.io.Serializable;
import org.marketcetera.util.misc.ClassVersion;

/**
 * A bound message, representing the combination of an {@link
 * I18NMessage2P} and its two parameters.
 * 
 * @author tlerios@marketcetera.com
 * @since 0.5.0
 * @version $Id: I18NBoundMessage2P.java 16154 2012-07-14 16:34:05Z colin $
 */

/* $License$ */

@ClassVersion("$Id: I18NBoundMessage2P.java 16154 2012-07-14 16:34:05Z colin $")
public class I18NBoundMessage2P
    extends I18NBoundMessageBase
{

    // CLASS DATA.

    private static final long serialVersionUID=1L;


    // CONSTRUCTORS.

    /**
     * Constructor mirroring superclass constructor.
     *
     * @see I18NBoundMessageBase#I18NBoundMessageBase(I18NMessage,Serializable...)
     */

    public I18NBoundMessage2P
        (I18NMessage2P message,
         Serializable p1,
         Serializable p2)
    {
        super(message,p1,p2);
    }


    // INSTANCE METHODS.
    
    /**
     * Returns the receiver's first parameter.
     *
     * @return The parameter.
     */

    public Serializable getParam1()
    {
        return getParams()[0];
    }

    /**
     * Returns the receiver's second parameter.
     *
     * @return The parameter.
     */

    public Serializable getParam2()
    {
        return getParams()[1];
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy