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

butterknife.internal.ListenerBinding Maven / Gradle / Ivy

There is a newer version: 10.2.3
Show newest version
package butterknife.internal;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

final class ListenerBinding implements Binding {
  private final String name;
  private final List parameters;
  private final boolean required;

  ListenerBinding(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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy