All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zipwhip.util.MemoryLocator Maven / Gradle / Ivy

package com.zipwhip.util;

import com.zipwhip.locators.Locator;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: Michael
 * Date: 7/6/11
 * Time: 3:37 PM
 * 

* Locate something via in-memory map */ public class MemoryLocator implements Locator { private Map elements = new HashMap(); public MemoryLocator() { } public MemoryLocator(Map elements) { this.elements = elements; } @Override public T locate(String key) { return elements.get(key); } public Map getElements() { return elements; } public void setElements(Map elements) { this.elements = elements; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy