fixed wrong description for toStrings returns
This commit is contained in:
		
							parent
							
								
									0cdc9d9ca4
								
							
						
					
					
						commit
						8aed4bbd3b
					
				| @ -1,18 +1,34 @@ | |||||||
| package fr.packageviewer; | package fr.packageviewer; | ||||||
| 
 | 
 | ||||||
|  | /** | ||||||
|  |  * The Pair class stores two objects of distinct type | ||||||
|  |  *  | ||||||
|  |  * @author C.Marla, R.Thomas, S.Djalim | ||||||
|  |  * @version 1.0 | ||||||
|  |  */ | ||||||
| public class Pair<K,V> { | public class Pair<K,V> { | ||||||
| 	private K first; | 	private K first; | ||||||
| 	private V second; | 	private V second; | ||||||
| 
 | 	/** | ||||||
|  | 	 *  | ||||||
|  | 	 */ | ||||||
| 	public Pair() { | 	public Pair() { | ||||||
| 
 | 
 | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | 	/** | ||||||
|  | 	 *  | ||||||
|  | 	 * @param first | ||||||
|  | 	 * @param second | ||||||
|  | 	 */ | ||||||
| 	public Pair(K first, V second) { | 	public Pair(K first, V second) { | ||||||
| 		this.first = first; | 		this.first = first; | ||||||
| 		this.second = second; | 		this.second = second; | ||||||
| 	} | 	} | ||||||
| 
 | 	/** | ||||||
|  | 	 *  | ||||||
|  | 	 * @return | ||||||
|  | 	 */ | ||||||
| 	public K getFirst() { | 	public K getFirst() { | ||||||
| 		return first; | 		return first; | ||||||
| 	} | 	} | ||||||
| @ -21,6 +37,10 @@ public class Pair<K,V> { | |||||||
| 		this.first = first; | 		this.first = first; | ||||||
| 	} | 	} | ||||||
| 	 | 	 | ||||||
|  | 	/** | ||||||
|  | 	 *  | ||||||
|  | 	 * @return | ||||||
|  | 	 */ | ||||||
| 	public V getSecond() { | 	public V getSecond() { | ||||||
| 		return second; | 		return second; | ||||||
| 	} | 	} | ||||||
|  | |||||||
| @ -63,7 +63,7 @@ public class Package extends SearchedPackage { | |||||||
|     /** |     /** | ||||||
|      * Returns a string reprensentation of the package |      * Returns a string reprensentation of the package | ||||||
|      *  |      *  | ||||||
|      * @return String, Description of the package |      * @return String, string reprensentation of the package | ||||||
|      */ |      */ | ||||||
|     @Override |     @Override | ||||||
|     public String toString() { |     public String toString() { | ||||||
|  | |||||||
| @ -80,7 +80,7 @@ public class SearchedPackage { | |||||||
|     /** |     /** | ||||||
|      * Returns a string reprensentation of the package |      * Returns a string reprensentation of the package | ||||||
|      *  |      *  | ||||||
|      * @return String, Description of the package |      * @return String, string reprensentation of the package | ||||||
|      */ |      */ | ||||||
|     @Override |     @Override | ||||||
|     public String toString() { |     public String toString() { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user