another useful default method - Appendable#appendCodePoint

Gernot Neppert mcnepp02 at googlemail.com
Thu Dec 27 02:58:51 PST 2012


Luckily, all that low-level stuff has been dealt with in class 
java.lang.Character, so your default implementation could be re-written as:

public Appendable appendCodePoint(int c) throws IOException default {
    return append(new String(Character.toChars(c));
}




More information about the lambda-dev mailing list