Technically you probably want to use a Charset or something like that.  The contains into an arraylist would theoretically involve iterating over it(though the compiler might get rid of it).