/** * 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(); }
/** * Copies an existing {@link AsciiSet} so that you can augment it with additional values. * * @return A builder initialized to the same characters in the copied set. */ public AsciiSet.Builder copy() { Builder b = new Builder(); for (int i = 0; i < 128; i++) b.store[i] = store[i]; return b; }
/** * 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(); }
/** * Copies an existing {@link AsciiSet} so that you can augment it with additional values. * * @return A builder initialized to the same characters in the copied set. */ public AsciiSet.Builder copy() { Builder b = new Builder(); for (int i = 0; i < 128; i++) b.store[i] = store[i]; return b; }
/** * Creates a builder for an ASCII set. * * @return A new builder. */ public static AsciiSet.Builder create() { return new Builder(); }
/** * Copies an existing {@link AsciiSet} so that you can augment it with additional values. * * @return A builder initialized to the same characters in the copied set. */ public AsciiSet.Builder copy() { Builder b = new Builder(); for (int i = 0; i < 128; i++) b.store[i] = store[i]; return b; }
/** * Creates a builder for an ASCII set. * * @return A new builder. */ public static AsciiSet.Builder create() { return new Builder(); }
/** * Creates a builder for an ASCII set. * * @return A new builder. */ public static AsciiSet.Builder create() { return new Builder(); }
/** * 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(); }