Guava MutableClassToInstanceMap - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Guava MutableClassToInstanceMap class.

This code example shows how to use the following methods:getInstance
	} 
 
	@Override 
	public <T extends Component> T getComponent(Class<? extends T> componentClass) {
		checkNotNull(componentClass,OBJECT_COMPONENT_CLASS_CANNOT_BE_NULL);
		T instance = map.getInstance(componentClass);
		if(LOGGER.isTraceEnabled()) { 
			LOGGER. 
				trace( 
					"Requested {}: {}", 
					componentClass.getCanonicalName(),
					instance==null?
						"instance not found": 
						"found instance "+instance.getClass().getCanonicalName()
				); 
		} 
		return instance;
	} 
 
	@Override 
3
CodeRank
See Code Examples for Guava MutableClassToInstanceMap Methods: