
butterknife.internal.Parameter Maven / Gradle / Ivy
package butterknife.internal;
/** Represents a parameter type and its position in the listener method. */
final class Parameter {
static final Parameter[] NONE = new Parameter[0];
private final int listenerPosition;
private final String type;
Parameter(int listenerPosition, String type) {
this.listenerPosition = listenerPosition;
this.type = type;
}
int getListenerPosition() {
return listenerPosition;
}
String getType() {
return type;
}
public boolean requiresCast(String toType) {
return !type.equals(toType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy