Example usage for com.google.common.collect ForwardingMap subclass-usage

List of usage examples for com.google.common.collect ForwardingMap subclass-usage

Introduction

In this page you can find the example usage for com.google.common.collect ForwardingMap subclass-usage.

Usage

From source file net.derquinse.common.collect.ImmutableHierarchyMap.java

/**
 * An immutable and thread-safe implementation of HierarchyMap.
 * @author Andres Rodriguez
 * @param <K> Type of the keys.
 * @param <V> Type of the values.
 */

From source file com.netflix.spinnaker.orca.pipeline.model.AlertOnAccessMap.java

public class AlertOnAccessMap extends ForwardingMap<String, Object> {

    private final Logger log = LoggerFactory.getLogger(getClass());

    private final Execution execution;
    private final Map<String, Object> delegate;

From source file de.cosmocode.collections.utility.ForwardingUtilityMap.java

/**
 * Implementation of the {@link UtilityMap} interface
 * delegating all calls to an underlying {@link UtilityMap}.
 *
 * @author Willi Schoenborn
 * @param <K> the generic key type

From source file org.apache.solr.spatial.MapListener.java

/**
 * Wraps another map, keeping track of each key that was seen via {@link #get(Object)} or {@link #remove(Object)}.
 * @author dsmiley
 */
@SuppressWarnings("unchecked")
public class MapListener<K, V> extends ForwardingMap<K, V> {

From source file com.infinities.skyport.util.ParForwardingMap.java

public class ParForwardingMap extends ForwardingMap<String, String> {

    private final Map<String, String[]> srcMap;

    public ParForwardingMap(final Map<String, String[]> reqMap) {
        srcMap = new HashMap<String, String[]>();

From source file com.isotrol.impe3.core.impl.AbstractIdentifiableMap.java

/**
 * Skeletal implementation for identifiable maps.
 * @author Andres Rodriguez
 * @param <V> Value type.
 */
public abstract class AbstractIdentifiableMap<V extends Identifiable> extends ForwardingMap<UUID, V>

From source file com.mgmtp.perfload.core.client.util.DefaultPlaceholderContainer.java

/**
 * Default {@link PlaceholderContainer} implementation.
 * 
 * @author rnaegele
 */
@NotThreadSafe

From source file net.derquinse.common.meta.ImmutableFieldMap.java

/**
 * A metaclass field map implementation.
 * @author Andres Rodriguez
 * @param <T> Enclosing type.
 */
final class ImmutableFieldMap<T extends WithMetaClass> extends ForwardingMap<String, MetaField<? super T, ?>>

From source file org.jboss.weld.util.collections.DefaultValueMap.java

/**
 * Wrapper for a {@link Map} that provides default values. When the {@link #get(Object)} method is invoked and the underlying
 * map does not contain the given key, the default value is stored in the map under the given key. The new value is then
 * returned from the methods.
 *
 * This class is not thread-safe and needs to be externally synchronized. It is not thread safe even if the delegate map is.

From source file com.facebook.buck.util.MapWrapperForNullValues.java

/**
 * {@link ImmutableMap} uses 16 fewer bytes per entry than {@link TreeMap}, but does not allow
 * null values. This wrapper class lets us have our cake and eat it too -- we use a sentinel
 * object in the underlying {@link ImmutableMap} and translate it on any read path.
 */
public final class MapWrapperForNullValues<K, V> extends ForwardingMap<K, V> {