Code example for MutableClassToInstanceMap

Methods: getInstance

0
	} 
 
	@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 
Experience pair programming with AI  Get Codota for Java