com.github.davidmoten.rx.jdbc.Parameter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxjava-jdbc Show documentation
Show all versions of rxjava-jdbc Show documentation
rx-java Observables for jdbc
package com.github.davidmoten.rx.jdbc;
import rx.functions.Func1;
/**
* Encapsulates a query parameter.
*/
final class Parameter {
/**
* Actual query parameter value to be encapsulated.
*/
private final Object parameter;
/**
* Constructor.
*
* @param parameter
*/
Parameter(Object parameter) {
super();
this.parameter = parameter;
}
/**
* Returns the parameter value.
*
* @return
*/
Object getValue() {
return parameter;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("Parameter [parameter=");
builder.append(parameter);
builder.append("]");
return builder.toString();
}
/**
* A conversion function for use in Observable.map().
*/
static final Func1
© 2015 - 2025 Weber Informatics LLC | Privacy Policy