src/authoring/entities/Entity.java
public void addIfAbsent(Component component) {
		for (Component c : this.components) {
			if (c.getKey().equals(component.getKey())) {
				return;
			}
		}
		this.components.add(component);
	}
/**
	 * Adds a given component only if it is not already present in the component list.
	 * @param component the component to add 
	 */
Adds a given component only if it is not already present in the component list.
@param component the component to add
Adds a given component only if it is not already present in the component list . @param component the component to add
public void addIfAbsent(Component component) {
		for (Component c : this.components) {
			if (c.getKey().equals(component.getKey())) {
				return;
			}
		}
		this.components.add(component);
	}
public void addIfAbsent ( Component component ) { for ( Component c : this . components ) { if ( c . getKey ( ) . equals ( component . getKey ( ) ) ) { return ; } } this . components . add ( component ) ; }
Adds a given component only if it is not already present in the component list.
Adds a given component only if it is not already present in the component list .