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.Collector
toIterator
in interface Mustache.Collector
public Mustache.VariableFetcher createFetcher(Object ctx, String name)
Mustache.Collector
octx.getClass().equals(nctx.getClass()
.createFetcher
in interface Mustache.Collector
public 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.Collector
Copyright © 2016. All rights reserved.