com.sageserpent.americium.java.Builder Maven / Gradle / Ivy
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();
}
};
}
}