@Test public void camelize() { assertThat(Inflector.camelize("Foo Bar"), is("fooBar")); assertThat(Inflector.camelize("FOO_BAR"), is("fooBar")); assertThat(Inflector.camelize("foo bar"), is("fooBar")); assertThat(Inflector.camelize("fooBar"), is("fooBar")); }
public static String camelize(final String humanCased) { String name = ""; for (final Iterator<String> i = split(humanCased).iterator(); i.hasNext();) { name += capitalize(i.next().toLowerCase()); } return uncapitalize(name); }
Inflector { public static String camelize(final String humanCased) { String name = ""; for (final Iterator<String> i = split(humanCased).iterator(); i.hasNext();) { name += capitalize(i.next().toLowerCase()); } return uncapitalize(name); } }
Inflector { public static String camelize(final String humanCased) { String name = ""; for (final Iterator<String> i = split(humanCased).iterator(); i.hasNext();) { name += capitalize(i.next().toLowerCase()); } return uncapitalize(name); } private  Inflector(); }
Inflector { public static String camelize(final String humanCased) { String name = ""; for (final Iterator<String> i = split(humanCased).iterator(); i.hasNext();) { name += capitalize(i.next().toLowerCase()); } return uncapitalize(name); } private  Inflector(); static String humanize(final String camelCased); static String camelize(final String humanCased); }
Inflector { public static String camelize(final String humanCased) { String name = ""; for (final Iterator<String> i = split(humanCased).iterator(); i.hasNext();) { name += capitalize(i.next().toLowerCase()); } return uncapitalize(name); } private  Inflector(); static String humanize(final String camelCased); static String camelize(final String humanCased);  }