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

yakworks.message.DefaultMsgMultiKey.kt Maven / Gradle / Ivy

There is a newer version: 3.14
Show newest version
package yakworks.message

/**
 * Default implementation of the MsgKey, normally would be build with the static helpers
 * Msg.key('somekey',....), not directly with this class
 *
 * @author Joshua Burnett (@basejump)
 * @since 0.3.0
 */
class DefaultMsgMultiKey : MsgMultiKey {

    override var codes: List? = null
    override var msgKey: MsgKey? = null

    constructor() {}
    constructor(codes: List?) {
        this.codes = codes
        msgKey = DefaultMsgKey()
    }

    constructor(msg: MsgKey?) {
        msgKey = msg
    }

    fun codes(v: List?): DefaultMsgMultiKey {
        codes = v
        return this
    }

    fun msgKey(v: MsgKey?): DefaultMsgMultiKey {
        msgKey = v
        return this
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy