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

com.airbnb.epoxy.processor.MultiParamAttribute.kt Maven / Gradle / Ivy

There is a newer version: 5.1.4
Show newest version
package com.airbnb.epoxy.processor

import com.squareup.javapoet.CodeBlock
import com.squareup.javapoet.ParameterSpec

/**
 * Allows an attribute to have multiple parameters in the model setter method. Those params are then
 * combined into a single object to be set on the attribute.
 *
 *
 * This is useful for things like
 * combining a StringRes and format arguments into a single string.
 */
interface MultiParamAttribute {
    val params: List
    /**
     * This code should combine the params into a single object which can then be set on the
     * attribute.
     */
    val valueToSetOnAttribute: CodeBlock

    fun varargs(): Boolean
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy