@Test public void testClear() { ItemFormatBuilder<Double> b = new ItemFormatBuilder<Double>( Double.class); b.append("1"); b.append("2"); assertEquals(2, b.getTokenCount()); b.clear(); assertEquals(0, b.getTokenCount()); }
public void clear(){ this.tokens.clear(); this.parseResultFactory = null; }
ItemFormatBuilder { public void clear(){ this.tokens.clear(); this.parseResultFactory = null; } }
ItemFormatBuilder { public void clear(){ this.tokens.clear(); this.parseResultFactory = null; } ItemFormatBuilder();  ItemFormatBuilder(Class<T> targetType); }
ItemFormatBuilder { public void clear(){ this.tokens.clear(); this.parseResultFactory = null; } ItemFormatBuilder();  ItemFormatBuilder(Class<T> targetType); Class<T> getTargetType(); ItemFormatBuilder<T> withStyle(LocalizationContext style); ItemFormatBuilder<T> withTargetType(Class<T> targetType); ItemFormatBuilder<T> append(StyleableItemFormatToken<T> token); ItemFormatBuilder<T> append(String token); int getTokenCount(); ItemFormatBuilder<T> withItemFactory(ParseResultFactory<T> parseResultFactory); ParseResultFactory<T> getParseResultFactory(); void clear(); boolean isBuildable(); List<StyleableItemFormatToken<T>> getTokens(); LocalizationContext getLocalizationContext(); ItemFormat<T> build(); @Override String toString(); }
ItemFormatBuilder { public void clear(){ this.tokens.clear(); this.parseResultFactory = null; } ItemFormatBuilder();  ItemFormatBuilder(Class<T> targetType); Class<T> getTargetType(); ItemFormatBuilder<T> withStyle(LocalizationContext style); ItemFormatBuilder<T> withTargetType(Class<T> targetType); ItemFormatBuilder<T> append(StyleableItemFormatToken<T> token); ItemFormatBuilder<T> append(String token); int getTokenCount(); ItemFormatBuilder<T> withItemFactory(ParseResultFactory<T> parseResultFactory); ParseResultFactory<T> getParseResultFactory(); void clear(); boolean isBuildable(); List<StyleableItemFormatToken<T>> getTokens(); LocalizationContext getLocalizationContext(); ItemFormat<T> build(); @Override String toString();  }