CharSequence is cool interface to cover all character/string (buffer/bulder) operation, especially for cases where you want to use String parameters in the methods that are working with texts.
Known Java implementing classes are CharBuffer, Segment, String, StringBuffer, StringBuilder.
So whenever you are planning some new API, use the CharSequense.
Known Java implementing classes are CharBuffer, Segment, String, StringBuffer, StringBuilder.
So whenever you are planning some new API, use the CharSequense.