public static interface Mustache.Collector
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.
|
<K,V> Map<K,V> |
createFetcherCache()
Creates a map to be used to cache
Mustache.VariableFetcher instances. |
Iterator<?> |
toIterator(Object value)
Returns an iterator that can iterate over the supplied value, or null if the value is
not a collection.
|
Iterator<?> toIterator(Object value)
Mustache.VariableFetcher createFetcher(Object ctx, String name)
octx.getClass().equals(nctx.getClass()
.<K,V> Map<K,V> createFetcherCache()
Mustache.VariableFetcher
instances. The GWT-compatible
collector returns a HashMap here, but the reflection based fetcher (which only works on
the JVM and Android, returns a concurrent hashmap.Copyright © 2016. All rights reserved.