List of usage examples for java.util Map interface-usage
From source file org.jpublish.RepositoryWrapper.java
/**
* A wrapper around any repository. This wrapper is used to expose the
* Repository to the view renderer. The current context is stored when
* the wrapper is created which means that the context does not have to
* be passed to the <code>get()</code> methods at request-time. Wrapping it
* in a Map for making easier the integration with modern template engines
From source file CopyOnWriteMap.java
/**
* A thread-safe version of {@link Map} in which all operations that change the
* Map are implemented by making a new copy of the underlying Map.
*
* While the creation of a new Map can be expensive, this class is designed for
* cases in which the primary function is to read data from the Map, not to
From source file org.broadleafcommerce.common.util.EfficientLRUMap.java
/**
* This class provides an LRUMap structure that defaults to a more efficient ConcurrentHashMap if the
* size has not yet been reached.
*
* In Broadleaf, there are many instances where an LRUMap could be used to guard against implementations
* where Map sizes grow in unexpected ways. However, the large majority of cases would fit well within the
From source file at.ac.tuwien.infosys.jcloudscale.utility.ReferenceHashmap.java
public class ReferenceHashmap<K, V> implements Map<K, V> { private int size = 0; private HashMap<Integer, List<WeakReference<K>>> keys = new HashMap<>(); private HashMap<Integer, List<Entry<WeakReference<K>, V>>> values = new HashMap<>();
From source file io.stallion.dataAccess.MappedModel.java
/**
* A Model subclass that implements the Map interface and accepts arbitrary
* key/value data. This is used by server-side Javascript plugins, which
* cannot define standard Java pojos, and this is used to add custom data
* to pages, posts, or other objects that are created via text files,
* without having go into creating a Java project and writing out classes
From source file de.dhke.projects.cutil.collections.immutable.ImmutableMap.java
/** * * @author Peter Wullinger <java@dhke.de> */ public class ImmutableMap<K, V> implements Map<K, V>, IDecorator<Map<K, V>> { private final Map<K, V> _backMap;
From source file fr.aliasource.webmail.proxy.impl.TimeOutMap.java
/**
* Map implementation removing unused values automatically after a given
* timeout. Values in this map are all {@link IStoppable} implementations. The
* stop method of the element is called when an item is timed out.
*
* @author tom
From source file org.jactr.core.utils.collections.CachedMap.java
/**
* cached values map for rapid access w/o worrying about iterating too
* much..
* @author developer
*
* @param <K>
From source file de.dhke.projects.cutil.collections.WeightedSet.java
/** * * @param <K> * @author Peter Wullinger <java@dhke.de> */ public class WeightedSet<K> implements Map<K, Double> {
From source file ListOrderedMap.java
/**
*
* List ordered map.
* The iterators returned by <code>keySet()</code>, <code>values()</code>
* and <code>entrySet()</code> methods reflect the order in which keys have
* been added to the map.