Migliorata la documentazione per renderla più omogenea con il risultato finale in HTML
This commit is contained in:
@@ -19,10 +19,10 @@ public class Entry implements Serializable{
|
||||
/**
|
||||
* Il costruttore della classe si occupa di inizializzare i dati dell'utente.
|
||||
*
|
||||
* @param in_user - username utente
|
||||
* @param in_password - password utente
|
||||
* @param in_type - tipologia di utente
|
||||
* @param in_location - luogo abitazione utente
|
||||
* @param in_user Username utente
|
||||
* @param in_password Password utente
|
||||
* @param in_type Tipologia di utente
|
||||
* @param in_location Luogo abitazione utente
|
||||
*/
|
||||
public Entry (String in_user, String in_password, boolean in_type, String in_location) {
|
||||
user = in_user;
|
||||
@@ -32,9 +32,8 @@ public class Entry implements Serializable{
|
||||
storico = new ArrayList<StoricoItem>();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return - username dell'utente.
|
||||
/**
|
||||
* @return Ritorna l'username dell'utente.
|
||||
*/
|
||||
public String getUser() {
|
||||
return user;
|
||||
@@ -42,7 +41,7 @@ public class Entry implements Serializable{
|
||||
|
||||
/**
|
||||
*
|
||||
* @return - password dell'utente.
|
||||
* @return Ritorna la password dell'utente.
|
||||
*/
|
||||
public String getPassword() {
|
||||
return password;
|
||||
@@ -50,7 +49,7 @@ public class Entry implements Serializable{
|
||||
|
||||
/**
|
||||
*
|
||||
* @return - il tipo di utente.
|
||||
* @return Ritorna il tipo di utente.
|
||||
*/
|
||||
public boolean getType() {
|
||||
return type;
|
||||
@@ -58,7 +57,7 @@ public class Entry implements Serializable{
|
||||
|
||||
/**
|
||||
*
|
||||
* @return - il luogo di abitazione dell'utente.
|
||||
* @return Ritorna il luogo di abitazione dell'utente.
|
||||
*/
|
||||
public String getLocation() {
|
||||
return location;
|
||||
@@ -66,7 +65,7 @@ public class Entry implements Serializable{
|
||||
|
||||
/**
|
||||
*
|
||||
* @return - il saldo dell'utente.
|
||||
* @return Ritorna il saldo dell'utente.
|
||||
*/
|
||||
public double getBalance() {
|
||||
return balance;
|
||||
@@ -74,14 +73,15 @@ public class Entry implements Serializable{
|
||||
|
||||
/**
|
||||
* Questo metodo aggiunge credito al saldo dell'utente.
|
||||
* @param balance - valore della ricarica del saldo
|
||||
*
|
||||
* @param balance Valore della ricarica del saldo
|
||||
*/
|
||||
public void setBalance(double balance) {
|
||||
this.balance += balance;
|
||||
|
||||
}
|
||||
/**
|
||||
* @return - Un ArrayList che rappresenta lo storico degli acquisti dell'utente.
|
||||
* @return Ritorna un ArrayList che rappresenta lo storico degli acquisti dell'utente.
|
||||
*/
|
||||
public ArrayList<StoricoItem> getStorico() {
|
||||
return storico;
|
||||
|
||||
Reference in New Issue
Block a user