TrieEntry implements Entry<String, T> { void clear() { children = 0; ascii = null; expanded = null; } TrieEntry(char character, @Nullable TrieEntry<T> parent);   TrieEntry(char character, @Nullable TrieEntry<T> parent, String key, T value); @Override @Nullable String getKey(); @Override @Nullable T getValue(); @Override @Nullable T setValue(T value); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }
@Test void clear() { entry.add('a'); entry.add('ü'); assertEquals(2, entry.children); entry.clear(); assertEquals(0, entry.children); assertNull(entry.child('a')); assertNull(entry.child('ü')); }