@Test public void addLast() { JavaName name = JavaName.of("OneTwoThreeFour"); name.addLast("Five"); assertThat(name.getSegments(), contains("one", "two", "three", "four", "five")); }
public void addLast(String segment) { words.add(normalize(segment)); }
JavaName { public void addLast(String segment) { words.add(normalize(segment)); } }
JavaName { public void addLast(String segment) { words.add(normalize(segment)); } JavaName(List<String> words); }
JavaName { public void addLast(String segment) { words.add(normalize(segment)); } JavaName(List<String> words); static JavaName of(String nameString); List<String> getSegments(); String toTypeName(); String toMemberName(); String toConstantName(); String toSnakeName(); void addFirst(String segment); void removeFirst(); void addLast(String segment); void removeLast(); }
JavaName { public void addLast(String segment) { words.add(normalize(segment)); } JavaName(List<String> words); static JavaName of(String nameString); List<String> getSegments(); String toTypeName(); String toMemberName(); String toConstantName(); String toSnakeName(); void addFirst(String segment); void removeFirst(); void addLast(String segment); void removeLast();  }