|  | @ -2,42 +2,24 @@ package solution; | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | import java.util.Collection; |  |  | import java.util.Collection; | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  | public class AbstractSimpleList<E> implements ISimpleList<E>{ |  |  | public abstract class AbstractSimpleList<E> implements ISimpleList<E> { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | 	@Override |  |  | 	@Override | 
			
		
	
		
		
			
				
					
					|  |  | 	public int size() { |  |  | 	public boolean add(Collection<E> c) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  | 		// TODO Auto-generated method stub
 |  |  | 		boolean temp = true; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  | 		return 0; |  |  | 		for (E e : c) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  | 	} |  |  | 			temp = temp && add(e); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  | 
 |  |  | 		} | 
			
				
				
			
		
	
		
		
			
				
					|  |  | 	@Override |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 	public boolean add(E e) { |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 		// TODO Auto-generated method stub
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 		return false; |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 	} |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 	@Override |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 	public boolean add(Collection c) { |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 		// TODO Auto-generated method stub
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 		return false; |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 	} |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 	@Override |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 	public boolean contains(Object o) { |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 		// TODO Auto-generated method stub
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 		return false; |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 	} |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  | 	@Override |  |  | 		return temp; | 
			
				
				
			
		
	
		
		
			
				
					|  |  | 	public boolean remove(Object o) { |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 		// TODO Auto-generated method stub
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 		return false; |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					|  |  | 	} |  |  | 	} | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | 	@Override |  |  | 	@Override | 
			
		
	
		
		
			
				
					|  |  | 	public void forAll(ICommand<E> command) { |  |  | 	public void forAll(ICommand<E> command) { | 
			
		
	
		
		
			
				
					
					|  |  | 		// TODO Auto-generated method stub
 |  |  | 		if (command != null) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  | 		 |  |  | 			for (int i = 0; i < size(); i++) { | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  | 				command.execute(get(i)); | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 			} | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 		} | 
			
		
	
		
		
			
				
					|  |  | 	} |  |  | 	} | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  | } |  |  | } | 
			
		
	
	
		
		
			
				
					|  | 
 |