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

com.sageserpent.americium.java.Builder Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy