Package objd.collection

Examples of objd.collection.StringBuilder


        } else {
            return r.value;
        }
    }
    public String toStringStartDelimiterEnd(final String start, final String delimiter, final String end) {
        final StringBuilder b = new StringBuilder();
        b.appendStr(start);
        final Mut<Boolean> first = new Mut<Boolean>(true);
        _forEach(new P<A>() {
            @Override
            public void apply(final A item) {
                if(first.value) {
                    first.value = false;
                } else {
                    b.appendStr(delimiter);
                }
                b.appendObj(item);
            }
        });
        b.appendStr(end);
        return b.toString();
    }
View Full Code Here


    }
    public String toStringDelimiter(final String delimiter) {
        return toStringStartDelimiterEnd("", delimiter, "");
    }
    public String _toString() {
        final StringBuilder b = new StringBuilder();
        ((Chain<Character>)(((Chain)(this))))._forEach(new P<Character>() {
            @Override
            public void apply(final Character item) {
                b.appendCh(item);
            }
        });
        return b.toString();
    }
View Full Code Here

TOP

Related Classes of objd.collection.StringBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.