butterknife.compiler.MethodViewBinding Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of butterknife-compiler Show documentation
Show all versions of butterknife-compiler Show documentation
Field and method binding for Android views.
package butterknife.compiler;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
final class MethodViewBinding implements MemberViewBinding {
private final String name;
private final List parameters;
private final boolean required;
MethodViewBinding(String name, List parameters, boolean required) {
this.name = name;
this.parameters = Collections.unmodifiableList(new ArrayList<>(parameters));
this.required = required;
}
public String getName() {
return name;
}
public List getParameters() {
return parameters;
}
@Override public String getDescription() {
return "method '" + name + "'";
}
public boolean isRequired() {
return required;
}
}