boolean addInternal (Component component) {
		Class<? extends Component> componentClass = component.getClass();
		Component oldComponent = getComponent(componentClass);

		if (component == oldComponent) {
			return false;
		}

		if (oldComponent != null) {
			removeInternal(componentClass);
		}

		int componentTypeIndex = ComponentType.getIndexFor(componentClass);
		components.set(componentTypeIndex, component);
		componentsArray.add(component);
		componentBits.set(componentTypeIndex);
		
		return true;
	}
boolean addInternal ( Component component ) { Class < ? extends Component > componentClass = component . getClass ( ) ; Component oldComponent = getComponent ( componentClass ) ; if ( component == oldComponent ) { return false ; } if ( oldComponent != null ) { removeInternal ( componentClass ) ; } int componentTypeIndex = ComponentType . getIndexFor ( componentClass ) ; components . set ( componentTypeIndex , component ) ; componentsArray . add ( component ) ; componentBits . set ( componentTypeIndex ) ; return true ; }
@param component
@return whether or not the component was added.