private static AsciiSet getEscapeSet(char c) { AsciiSet s = ESCAPE_SETS.get(c); if (s == null) { s = AsciiSet.create().chars(c, '\\').build(); ESCAPE_SETS.put(c, s); } return s; } static Map<Character,AsciiSet> ESCAPE_SETS = new ConcurrentHashMap<>();
private static AsciiSet getEscapeSet(char c) { AsciiSet s = ESCAPE_SETS.get(c); if (s == null) { s = AsciiSet.create().chars(c, '\\').build(); ESCAPE_SETS.put(c, s); } return s; } static Map<Character,AsciiSet> ESCAPE_SETS = new ConcurrentHashMap<>();
private static AsciiSet getEscapeSet(char c) { AsciiSet s = ESCAPE_SETS.get(c); if (s == null) { s = AsciiSet.create().chars(c, '\\').build(); ESCAPE_SETS.put(c, s); } return s; } static Map<Character,AsciiSet> ESCAPE_SETS = new ConcurrentHashMap<>();
/** * Creates an ASCII set with the specified characters. * * @param chars The characters to keep in this store. * @return A new object. */ public static AsciiSet create(String chars) { return new Builder().chars(chars).build(); }
/** * Creates an ASCII set with the specified characters. * * @param chars The characters to keep in this store. * @return A new object. */ public static AsciiSet create(String chars) { return new Builder().chars(chars).build(); }
/** * Creates an ASCII set with the specified characters. * * @param chars The characters to keep in this store. * @return A new object. */ public static AsciiSet create(String chars) { return new Builder().chars(chars).build(); }