@Test public void simpleCommaSeparated() { final String input = "a@example.com, b@example.com"; final Collection<EmailAddressToken> expected = ImmutableList.of( new EmailAddressToken( 0, 13, EmailAddress.builder().email("a@example.com").build() ), new EmailAddressToken( 14, 27, EmailAddress.builder().email("b@example.com").build() ) ); final Collection<EmailAddressToken> actual = EmailAddressTokenizer.tokenize(input); Assert.assertArrayEquals( expected.toArray(new EmailAddressToken[0]), actual.toArray(new EmailAddressToken[0]) ); }
public static Collection<EmailAddressToken> tokenize(final CharSequence cs) { return tokenize(cs, false); }
EmailAddressTokenizer { public static Collection<EmailAddressToken> tokenize(final CharSequence cs) { return tokenize(cs, false); } }
EmailAddressTokenizer { public static Collection<EmailAddressToken> tokenize(final CharSequence cs) { return tokenize(cs, false); }  }
EmailAddressTokenizer { public static Collection<EmailAddressToken> tokenize(final CharSequence cs) { return tokenize(cs, false); }  static Collection<EmailAddressToken> tokenize(final CharSequence cs); static Collection<EmailAddressToken> tokenize(final CharSequence cs, final boolean requireExplicitDelimiter); }
EmailAddressTokenizer { public static Collection<EmailAddressToken> tokenize(final CharSequence cs) { return tokenize(cs, false); }  static Collection<EmailAddressToken> tokenize(final CharSequence cs); static Collection<EmailAddressToken> tokenize(final CharSequence cs, final boolean requireExplicitDelimiter);  }