com.sageserpent.americium.java.Builder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of americium_3 Show documentation
Show all versions of americium_3 Show documentation
Generation of test data for parameterised testing
The newest version!
package com.sageserpent.americium.java;
public interface Builder {
void add(Case caze);
Collection build();
static Builder stringBuilder() {
return new Builder() {
final StringBuffer
buffer =
new StringBuffer();
@Override
public void add(
Character caze) {
buffer.append(
caze);
}
@Override
public String build() {
return buffer.toString();
}
};
}
}