ListToMapConverter<ImplT,InnerT> Class

  • java.lang.Object
    • com.microsoft.azure.management.resources.fluentcore.utils.ListToMapConverter<ImplT,InnerT>

Type Parameters

ImplT

implementation of the interface

InnerT

inner class which needs to be wrapped

public class ListToMapConverter<ImplT,InnerT>

Utility class to convert a list of inners to map of implementation.

Method Summary

Modifier and Type Method and Description
Map<String, ImplT> convertToUnmodifiableMap(List<InnerT> innerList)

Converts the passed list of inners to unmodifiable map of impls.

abstract ImplT impl(InnerT innerT)
abstract String name(InnerT innerT)

Method Details

convertToUnmodifiableMap

public Map convertToUnmodifiableMap(List innerList)

Converts the passed list of inners to unmodifiable map of impls.

Parameters:

innerList - list of the inners.

Returns:

map of the impls

impl

protected abstract ImplT impl(InnerT innerT)

Parameters:

innerT

name

protected abstract String name(InnerT innerT)

Parameters:

innerT

Applies to