Haifisch7734

BB

May 22nd, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.75 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.mazebank.back;
  7.  
  8. import java.io.Serializable;
  9. import javax.inject.Named;
  10. import javax.enterprise.context.SessionScoped;
  11.  
  12. /**
  13.  *
  14.  * @author kacperb333
  15.  */
  16. @Named("accountBean")
  17. @SessionScoped
  18. public class AccountBean implements Serializable {
  19.  
  20.     private Float saldo;
  21.  
  22.     public AccountBean() {
  23.     }
  24.  
  25.     public Float getSaldo() {
  26.         return saldo;
  27.     }
  28.  
  29.     public void setSaldo(Float saldo) {
  30.         this.saldo = saldo;
  31.     }
  32.    
  33.     public boolean validateAmount(int amount) {
  34.         return this.saldo > amount;
  35.     }
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment