ListToMapConverter<ImplT,InnerT> Class
- java.
lang. Object - com.
microsoft. azure. management. resources. fluentcore. utils. ListToMapConverter<ImplT,InnerT>
- com.
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
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java