fixed wrong description for toStrings returns
This commit is contained in:
parent
0cdc9d9ca4
commit
8aed4bbd3b
@ -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;
|
||||
}
|
||||
|
@ -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() {
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user