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

de.vandermeer.skb.collections.IsMapStrategy Maven / Gradle / Ivy

The newest version!
/* Copyright 2014 Sven van der Meer 
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package de.vandermeer.skb.collections;

import java.util.Map;

/**
 * Interface for Map strategies.
 *
 * @author     Sven van der Meer <[email protected]>
 * @version    v0.0.4 build 150619 (19-Jun-15) for Java 1.8
 */
public interface IsMapStrategy extends IsMCStrategy {

	/**
	 * Returns a new map for the used strategy (enum) for the given class T as map <String, T>.
	 * @param  type for the map values
	 * @param T class to be used for initialising the map
	 * @return new map for the given class
	 */
	 Map get(Class T);

	/**
	 * Returns a new map view for the given map of type <String, T>.
	 * @param  type for the map values
	 * @param map input map
	 * @return new map view
	 */
	 Map get(Map map);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy