Example usage for com.google.common.collect ImmutableClassToInstanceMap getInstance

List of usage examples for com.google.common.collect ImmutableClassToInstanceMap getInstance

Introduction

In this page you can find the example usage for com.google.common.collect ImmutableClassToInstanceMap getInstance.

Prototype

@Override
    @SuppressWarnings("unchecked") 
    @Nullable
    public <T extends B> T getInstance(Class<T> type) 

Source Link

Usage

From source file:com.github.akiraly.db4j.ContextRowMapperFactory.java

@SuppressWarnings("unchecked")
@Override//from www  .  j  a  v a2 s . c  o m
public RowMapper<T> newRowMapper(Object[] parameters, ImmutableClassToInstanceMap<Object> context) {
    return resultNotNull(context.getInstance(RowMapper.class), "rowMapper");
}