public abstract class BasicCollector extends Object implements Mustache.Collector
| Constructor and Description |
|---|
BasicCollector() |
| Modifier and Type | Method and Description |
|---|---|
Mustache.VariableFetcher |
createFetcher(Object ctx,
String name)
Creates a fetcher for a so-named variable in the supplied context object, which will
never be null.
|
abstract <K,V> Map<K,V> |
createFetcherCache()
This should return a thread-safe map, either
Collections.synchronizedMap(java.util.Map<K, V>) called on
a standard Map implementation or something like ConcurrentHashMap. |
Iterator<?> |
toIterator(Object value)
Returns an iterator that can iterate over the supplied value, or null if the value is
not a collection.
|
public Iterator<?> toIterator(Object value)
Mustache.CollectortoIterator in interface Mustache.Collectorpublic Mustache.VariableFetcher createFetcher(Object ctx, String name)
Mustache.Collectoroctx.getClass().equals(nctx.getClass().createFetcher in interface Mustache.Collectorpublic abstract <K,V> Map<K,V> createFetcherCache()
Collections.synchronizedMap(java.util.Map<K, V>) called on
a standard Map implementation or something like ConcurrentHashMap.createFetcherCache in interface Mustache.CollectorCopyright © 2016. All rights reserved.