fixed wrong description for toStrings returns

This commit is contained in:
Djalim Simaila 2022-12-14 14:50:27 +01:00
parent 0cdc9d9ca4
commit 8aed4bbd3b
3 changed files with 25 additions and 5 deletions

View File

@ -1,18 +1,34 @@
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> {
private K first;
private V second;
/**
*
*/
public Pair() {
}
/**
*
* @param first
* @param second
*/
public Pair(K first, V second) {
this.first = first;
this.second = second;
}
/**
*
* @return
*/
public K getFirst() {
return first;
}
@ -20,7 +36,11 @@ public class Pair<K,V> {
public void setFirst(K first) {
this.first = first;
}
/**
*
* @return
*/
public V getSecond() {
return second;
}

View File

@ -63,7 +63,7 @@ public class Package extends SearchedPackage {
/**
* Returns a string reprensentation of the package
*
* @return String, Description of the package
* @return String, string reprensentation of the package
*/
@Override
public String toString() {

View File

@ -80,7 +80,7 @@ public class SearchedPackage {
/**
* Returns a string reprensentation of the package
*
* @return String, Description of the package
* @return String, string reprensentation of the package
*/
@Override
public String toString() {