├── doc ├── allclasses-index.html ├── allclasses.html ├── allpackages-index.html ├── com │ └── bytebank │ │ ├── modelo │ │ ├── Administrador.html │ │ ├── Autenticable.html │ │ ├── AutenticacionUtil.html │ │ ├── Cliente.html │ │ ├── Contador.html │ │ ├── ControlBonificacion.html │ │ ├── Cuenta.html │ │ ├── CuentaAhorros.html │ │ ├── CuentaCorriente.html │ │ ├── Funcionario.html │ │ ├── Gerente.html │ │ ├── SaldoInsuficienteException.html │ │ ├── SistemaInterno.html │ │ ├── class-use │ │ │ ├── Administrador.html │ │ │ ├── Autenticable.html │ │ │ ├── AutenticacionUtil.html │ │ │ ├── Cliente.html │ │ │ ├── Contador.html │ │ │ ├── ControlBonificacion.html │ │ │ ├── Cuenta.html │ │ │ ├── CuentaAhorros.html │ │ │ ├── CuentaCorriente.html │ │ │ ├── Funcionario.html │ │ │ ├── Gerente.html │ │ │ ├── SaldoInsuficienteException.html │ │ │ └── SistemaInterno.html │ │ ├── package-summary.html │ │ ├── package-tree.html │ │ └── package-use.html │ │ └── test │ │ ├── TestControlBonificacion.html │ │ ├── TestCuenta.html │ │ ├── TestCuentaExceptionSaldo.html │ │ ├── TestFuncionario.html │ │ ├── TestGerente.html │ │ ├── TestReferencias.html │ │ ├── TestSistemaInterno.html │ │ ├── class-use │ │ ├── TestControlBonificacion.html │ │ ├── TestCuenta.html │ │ ├── TestCuentaExceptionSaldo.html │ │ ├── TestFuncionario.html │ │ ├── TestGerente.html │ │ ├── TestReferencias.html │ │ └── TestSistemaInterno.html │ │ ├── package-summary.html │ │ ├── package-tree.html │ │ └── package-use.html ├── constant-values.html ├── deprecated-list.html ├── element-list ├── help-doc.html ├── index-files │ ├── index-1.html │ ├── index-10.html │ ├── index-2.html │ ├── index-3.html │ ├── index-4.html │ ├── index-5.html │ ├── index-6.html │ ├── index-7.html │ ├── index-8.html │ └── index-9.html ├── index.html ├── jquery │ ├── external │ │ └── jquery │ │ │ └── jquery.js │ ├── images │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png │ │ ├── ui-bg_glass_65_dadada_1x400.png │ │ ├── ui-bg_glass_75_dadada_1x400.png │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png │ │ ├── ui-bg_glass_95_fef1ec_1x400.png │ │ ├── ui-bg_highlight-soft_75_cccccc_1x100.png │ │ ├── ui-icons_222222_256x240.png │ │ ├── ui-icons_2e83ff_256x240.png │ │ ├── ui-icons_454545_256x240.png │ │ ├── ui-icons_888888_256x240.png │ │ └── ui-icons_cd0a0a_256x240.png │ ├── jquery-3.4.1.js │ ├── jquery-ui.css │ ├── jquery-ui.js │ ├── jquery-ui.min.css │ ├── jquery-ui.min.js │ ├── jquery-ui.structure.css │ ├── jquery-ui.structure.min.css │ ├── jszip-utils │ │ └── dist │ │ │ ├── jszip-utils-ie.js │ │ │ ├── jszip-utils-ie.min.js │ │ │ ├── jszip-utils.js │ │ │ └── jszip-utils.min.js │ └── jszip │ │ └── dist │ │ ├── jszip.js │ │ └── jszip.min.js ├── member-search-index.js ├── member-search-index.zip ├── overview-summary.html ├── overview-tree.html ├── package-search-index.js ├── package-search-index.zip ├── resources │ ├── glass.png │ └── x.png ├── script.js ├── search.js ├── serialized-form.html ├── stylesheet.css ├── type-search-index.js └── type-search-index.zip ├── java-introduccion-objetos.iml └── src └── com └── bytebank ├── modelo ├── Administrador.java ├── Autenticable.java ├── AutenticacionUtil.java ├── Cliente.java ├── Contador.java ├── ControlBonificacion.java ├── Cuenta.java ├── CuentaAhorros.java ├── CuentaCorriente.java ├── Funcionario.java ├── Gerente.java ├── SaldoInsuficienteException.java └── SistemaInterno.java └── test ├── TestControlBonificacion.java ├── TestCuenta.java ├── TestCuentaExceptionSaldo.java ├── TestFuncionario.java ├── TestGerente.java ├── TestReferencias.java ├── TestSistemaInterno.java └── TestString.java /doc/allclasses.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | All Classes 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 |

All Classes

22 |
23 | 45 |
46 | 47 | 48 | -------------------------------------------------------------------------------- /doc/allpackages-index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | All Packages 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

All Packages

98 |
99 |
100 | 121 |
122 |
123 | 169 | 170 | 171 | -------------------------------------------------------------------------------- /doc/com/bytebank/modelo/class-use/Administrador.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.bytebank.modelo.Administrador 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Uses of Class
com.bytebank.modelo.Administrador

98 |
99 |
No usage of com.bytebank.modelo.Administrador
100 |
101 | 147 | 148 | 149 | -------------------------------------------------------------------------------- /doc/com/bytebank/modelo/class-use/AutenticacionUtil.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.bytebank.modelo.AutenticacionUtil 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Uses of Class
com.bytebank.modelo.AutenticacionUtil

98 |
99 |
No usage of com.bytebank.modelo.AutenticacionUtil
100 |
101 | 147 | 148 | 149 | -------------------------------------------------------------------------------- /doc/com/bytebank/modelo/class-use/Contador.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.bytebank.modelo.Contador 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Uses of Class
com.bytebank.modelo.Contador

98 |
99 |
No usage of com.bytebank.modelo.Contador
100 |
101 | 147 | 148 | 149 | -------------------------------------------------------------------------------- /doc/com/bytebank/modelo/class-use/ControlBonificacion.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.bytebank.modelo.ControlBonificacion 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Uses of Class
com.bytebank.modelo.ControlBonificacion

98 |
99 |
No usage of com.bytebank.modelo.ControlBonificacion
100 |
101 | 147 | 148 | 149 | -------------------------------------------------------------------------------- /doc/com/bytebank/modelo/class-use/CuentaAhorros.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.bytebank.modelo.CuentaAhorros 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Uses of Class
com.bytebank.modelo.CuentaAhorros

98 |
99 |
No usage of com.bytebank.modelo.CuentaAhorros
100 |
101 | 147 | 148 | 149 | -------------------------------------------------------------------------------- /doc/com/bytebank/modelo/class-use/CuentaCorriente.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.bytebank.modelo.CuentaCorriente 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Uses of Class
com.bytebank.modelo.CuentaCorriente

98 |
99 |
No usage of com.bytebank.modelo.CuentaCorriente
100 |
101 | 147 | 148 | 149 | -------------------------------------------------------------------------------- /doc/com/bytebank/modelo/class-use/Gerente.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.bytebank.modelo.Gerente 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Uses of Class
com.bytebank.modelo.Gerente

98 |
99 |
No usage of com.bytebank.modelo.Gerente
100 |
101 | 147 | 148 | 149 | -------------------------------------------------------------------------------- /doc/com/bytebank/modelo/class-use/SistemaInterno.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.bytebank.modelo.SistemaInterno 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Uses of Class
com.bytebank.modelo.SistemaInterno

98 |
99 |
No usage of com.bytebank.modelo.SistemaInterno
100 |
101 | 147 | 148 | 149 | -------------------------------------------------------------------------------- /doc/com/bytebank/modelo/package-use.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Package com.bytebank.modelo 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Uses of Package
com.bytebank.modelo

98 |
99 |
100 | 152 |
153 |
154 | 200 | 201 | 202 | -------------------------------------------------------------------------------- /doc/com/bytebank/test/class-use/TestControlBonificacion.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.bytebank.test.TestControlBonificacion 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Uses of Class
com.bytebank.test.TestControlBonificacion

98 |
99 |
No usage of com.bytebank.test.TestControlBonificacion
100 |
101 | 147 | 148 | 149 | -------------------------------------------------------------------------------- /doc/com/bytebank/test/class-use/TestCuenta.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.bytebank.test.TestCuenta 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Uses of Class
com.bytebank.test.TestCuenta

98 |
99 |
No usage of com.bytebank.test.TestCuenta
100 |
101 | 147 | 148 | 149 | -------------------------------------------------------------------------------- /doc/com/bytebank/test/class-use/TestCuentaExceptionSaldo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.bytebank.test.TestCuentaExceptionSaldo 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Uses of Class
com.bytebank.test.TestCuentaExceptionSaldo

98 |
99 |
No usage of com.bytebank.test.TestCuentaExceptionSaldo
100 |
101 | 147 | 148 | 149 | -------------------------------------------------------------------------------- /doc/com/bytebank/test/class-use/TestFuncionario.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.bytebank.test.TestFuncionario 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Uses of Class
com.bytebank.test.TestFuncionario

98 |
99 |
No usage of com.bytebank.test.TestFuncionario
100 |
101 | 147 | 148 | 149 | -------------------------------------------------------------------------------- /doc/com/bytebank/test/class-use/TestGerente.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.bytebank.test.TestGerente 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Uses of Class
com.bytebank.test.TestGerente

98 |
99 |
No usage of com.bytebank.test.TestGerente
100 |
101 | 147 | 148 | 149 | -------------------------------------------------------------------------------- /doc/com/bytebank/test/class-use/TestReferencias.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.bytebank.test.TestReferencias 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Uses of Class
com.bytebank.test.TestReferencias

98 |
99 |
No usage of com.bytebank.test.TestReferencias
100 |
101 | 147 | 148 | 149 | -------------------------------------------------------------------------------- /doc/com/bytebank/test/class-use/TestSistemaInterno.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.bytebank.test.TestSistemaInterno 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Uses of Class
com.bytebank.test.TestSistemaInterno

98 |
99 |
No usage of com.bytebank.test.TestSistemaInterno
100 |
101 | 147 | 148 | 149 | -------------------------------------------------------------------------------- /doc/com/bytebank/test/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.bytebank.test 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Package com.bytebank.test

98 |
99 |
100 | 141 |
142 |
143 | 189 | 190 | 191 | -------------------------------------------------------------------------------- /doc/com/bytebank/test/package-tree.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.bytebank.test Class Hierarchy 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Hierarchy For Package com.bytebank.test

98 | Package Hierarchies: 99 | 102 |
103 |
104 |
105 |

Class Hierarchy

106 | 119 |
120 |
121 |
122 | 168 | 169 | 170 | -------------------------------------------------------------------------------- /doc/com/bytebank/test/package-use.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Package com.bytebank.test 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Uses of Package
com.bytebank.test

98 |
99 |
No usage of com.bytebank.test
100 |
101 | 147 | 148 | 149 | -------------------------------------------------------------------------------- /doc/constant-values.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Constant Field Values 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Constant Field Values

98 |
99 |

Contents

100 |
101 |
102 |
103 | 149 | 150 | 151 | -------------------------------------------------------------------------------- /doc/deprecated-list.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Deprecated List 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Deprecated API

98 |

Contents

99 |
100 |
101 | 147 | 148 | 149 | -------------------------------------------------------------------------------- /doc/element-list: -------------------------------------------------------------------------------- 1 | com.bytebank.modelo 2 | com.bytebank.test 3 | -------------------------------------------------------------------------------- /doc/index-files/index-3.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | D-Index 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
A C D F G I M R S T 
All Classes All Packages 97 | 98 | 99 |

D

100 |
101 |
deposita(double) - Method in class com.bytebank.modelo.Cuenta
102 |
 
103 |
deposita(double) - Method in class com.bytebank.modelo.CuentaAhorros
104 |
 
105 |
deposita(double) - Method in class com.bytebank.modelo.CuentaCorriente
106 |
 
107 |
108 | A C D F G I M R S T 
All Classes All Packages
109 |
110 | 156 | 157 | 158 | -------------------------------------------------------------------------------- /doc/index-files/index-4.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | F-Index 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
A C D F G I M R S T 
All Classes All Packages 97 | 98 | 99 |

F

100 |
101 |
Funcionario - Class in com.bytebank.modelo
102 |
 
103 |
Funcionario() - Constructor for class com.bytebank.modelo.Funcionario
104 |
 
105 |
106 | A C D F G I M R S T 
All Classes All Packages
107 |
108 | 154 | 155 | 156 | -------------------------------------------------------------------------------- /doc/index-files/index-6.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | I-Index 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
A C D F G I M R S T 
All Classes All Packages 97 | 98 | 99 |

I

100 |
101 |
iniciarSesion(String) - Method in class com.bytebank.modelo.Administrador
102 |
 
103 |
iniciarSesion(String) - Method in interface com.bytebank.modelo.Autenticable
104 |
 
105 |
iniciarSesion(String) - Method in class com.bytebank.modelo.AutenticacionUtil
106 |
 
107 |
iniciarSesion(String) - Method in class com.bytebank.modelo.Cliente
108 |
 
109 |
iniciarSesion(String) - Method in class com.bytebank.modelo.Gerente
110 |
 
111 |
112 | A C D F G I M R S T 
All Classes All Packages
113 |
114 | 160 | 161 | 162 | -------------------------------------------------------------------------------- /doc/index-files/index-8.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | R-Index 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
A C D F G I M R S T 
All Classes All Packages 97 | 98 | 99 |

R

100 |
101 |
registrarSalario(Funcionario) - Method in class com.bytebank.modelo.ControlBonificacion
102 |
 
103 |
104 | A C D F G I M R S T 
All Classes All Packages
105 |
106 | 152 | 153 | 154 | -------------------------------------------------------------------------------- /doc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Overview 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 |
Packages 
PackageDescription
com.bytebank.modelo 
com.bytebank.test 
114 |
115 |
116 | 162 | 163 | 164 | -------------------------------------------------------------------------------- /doc/jquery/images/ui-bg_glass_55_fbf9ee_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/1786-java-string-object/87779e93a6ec83ea7d9adc9bacb45351a9780ec4/doc/jquery/images/ui-bg_glass_55_fbf9ee_1x400.png -------------------------------------------------------------------------------- /doc/jquery/images/ui-bg_glass_65_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/1786-java-string-object/87779e93a6ec83ea7d9adc9bacb45351a9780ec4/doc/jquery/images/ui-bg_glass_65_dadada_1x400.png -------------------------------------------------------------------------------- /doc/jquery/images/ui-bg_glass_75_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/1786-java-string-object/87779e93a6ec83ea7d9adc9bacb45351a9780ec4/doc/jquery/images/ui-bg_glass_75_dadada_1x400.png -------------------------------------------------------------------------------- /doc/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/1786-java-string-object/87779e93a6ec83ea7d9adc9bacb45351a9780ec4/doc/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png -------------------------------------------------------------------------------- /doc/jquery/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/1786-java-string-object/87779e93a6ec83ea7d9adc9bacb45351a9780ec4/doc/jquery/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /doc/jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/1786-java-string-object/87779e93a6ec83ea7d9adc9bacb45351a9780ec4/doc/jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png -------------------------------------------------------------------------------- /doc/jquery/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/1786-java-string-object/87779e93a6ec83ea7d9adc9bacb45351a9780ec4/doc/jquery/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /doc/jquery/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/1786-java-string-object/87779e93a6ec83ea7d9adc9bacb45351a9780ec4/doc/jquery/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /doc/jquery/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/1786-java-string-object/87779e93a6ec83ea7d9adc9bacb45351a9780ec4/doc/jquery/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /doc/jquery/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/1786-java-string-object/87779e93a6ec83ea7d9adc9bacb45351a9780ec4/doc/jquery/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /doc/jquery/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/1786-java-string-object/87779e93a6ec83ea7d9adc9bacb45351a9780ec4/doc/jquery/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /doc/jquery/jquery-ui.structure.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * jQuery UI CSS Framework 1.12.1 3 | * http://jqueryui.com 4 | * 5 | * Copyright jQuery Foundation and other contributors 6 | * Released under the MIT license. 7 | * http://jquery.org/license 8 | * 9 | * http://api.jqueryui.com/category/theming/ 10 | */ 11 | /* Layout helpers 12 | ----------------------------------*/ 13 | .ui-helper-hidden { 14 | display: none; 15 | } 16 | .ui-helper-hidden-accessible { 17 | border: 0; 18 | clip: rect(0 0 0 0); 19 | height: 1px; 20 | margin: -1px; 21 | overflow: hidden; 22 | padding: 0; 23 | position: absolute; 24 | width: 1px; 25 | } 26 | .ui-helper-reset { 27 | margin: 0; 28 | padding: 0; 29 | border: 0; 30 | outline: 0; 31 | line-height: 1.3; 32 | text-decoration: none; 33 | font-size: 100%; 34 | list-style: none; 35 | } 36 | .ui-helper-clearfix:before, 37 | .ui-helper-clearfix:after { 38 | content: ""; 39 | display: table; 40 | border-collapse: collapse; 41 | } 42 | .ui-helper-clearfix:after { 43 | clear: both; 44 | } 45 | .ui-helper-zfix { 46 | width: 100%; 47 | height: 100%; 48 | top: 0; 49 | left: 0; 50 | position: absolute; 51 | opacity: 0; 52 | filter:Alpha(Opacity=0); /* support: IE8 */ 53 | } 54 | 55 | .ui-front { 56 | z-index: 100; 57 | } 58 | 59 | 60 | /* Interaction Cues 61 | ----------------------------------*/ 62 | .ui-state-disabled { 63 | cursor: default !important; 64 | pointer-events: none; 65 | } 66 | 67 | 68 | /* Icons 69 | ----------------------------------*/ 70 | .ui-icon { 71 | display: inline-block; 72 | vertical-align: middle; 73 | margin-top: -.25em; 74 | position: relative; 75 | text-indent: -99999px; 76 | overflow: hidden; 77 | background-repeat: no-repeat; 78 | } 79 | 80 | .ui-widget-icon-block { 81 | left: 50%; 82 | margin-left: -8px; 83 | display: block; 84 | } 85 | 86 | /* Misc visuals 87 | ----------------------------------*/ 88 | 89 | /* Overlays */ 90 | .ui-widget-overlay { 91 | position: fixed; 92 | top: 0; 93 | left: 0; 94 | width: 100%; 95 | height: 100%; 96 | } 97 | .ui-autocomplete { 98 | position: absolute; 99 | top: 0; 100 | left: 0; 101 | cursor: default; 102 | } 103 | .ui-menu { 104 | list-style: none; 105 | padding: 0; 106 | margin: 0; 107 | display: block; 108 | outline: 0; 109 | } 110 | .ui-menu .ui-menu { 111 | position: absolute; 112 | } 113 | .ui-menu .ui-menu-item { 114 | margin: 0; 115 | cursor: pointer; 116 | /* support: IE10, see #8844 */ 117 | list-style-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"); 118 | } 119 | .ui-menu .ui-menu-item-wrapper { 120 | position: relative; 121 | padding: 3px 1em 3px .4em; 122 | } 123 | .ui-menu .ui-menu-divider { 124 | margin: 5px 0; 125 | height: 0; 126 | font-size: 0; 127 | line-height: 0; 128 | border-width: 1px 0 0 0; 129 | } 130 | .ui-menu .ui-state-focus, 131 | .ui-menu .ui-state-active { 132 | margin: -1px; 133 | } 134 | 135 | /* icon support */ 136 | .ui-menu-icons { 137 | position: relative; 138 | } 139 | .ui-menu-icons .ui-menu-item-wrapper { 140 | padding-left: 2em; 141 | } 142 | 143 | /* left-aligned */ 144 | .ui-menu .ui-icon { 145 | position: absolute; 146 | top: 0; 147 | bottom: 0; 148 | left: .2em; 149 | margin: auto 0; 150 | } 151 | 152 | /* right-aligned */ 153 | .ui-menu .ui-menu-icon { 154 | left: auto; 155 | right: 0; 156 | } 157 | -------------------------------------------------------------------------------- /doc/jquery/jquery-ui.structure.min.css: -------------------------------------------------------------------------------- 1 | /*! jQuery UI - v1.12.1 - 2018-12-06 2 | * http://jqueryui.com 3 | * Copyright jQuery Foundation and other contributors; Licensed MIT */ 4 | 5 | .ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{margin:0;cursor:pointer;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.ui-menu .ui-menu-item-wrapper{position:relative;padding:3px 1em 3px .4em}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item-wrapper{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0} -------------------------------------------------------------------------------- /doc/jquery/jszip-utils/dist/jszip-utils-ie.js: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | ;(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o\r\n"+ 18 | "\r\n"; 32 | 33 | // inject VBScript 34 | document.write(IEBinaryToArray_ByteStr_Script); 35 | 36 | global.JSZipUtils._getBinaryFromXHR = function (xhr) { 37 | var binary = xhr.responseBody; 38 | var byteMapping = {}; 39 | for ( var i = 0; i < 256; i++ ) { 40 | for ( var j = 0; j < 256; j++ ) { 41 | byteMapping[ String.fromCharCode( i + (j << 8) ) ] = 42 | String.fromCharCode(i) + String.fromCharCode(j); 43 | } 44 | } 45 | var rawBytes = IEBinaryToArray_ByteStr(binary); 46 | var lastChr = IEBinaryToArray_ByteStr_Last(binary); 47 | return rawBytes.replace(/[\s\S]/g, function( match ) { 48 | return byteMapping[match]; 49 | }) + lastChr; 50 | }; 51 | 52 | // enforcing Stuk's coding style 53 | // vim: set shiftwidth=4 softtabstop=4: 54 | 55 | },{}]},{},[1]) 56 | ; 57 | -------------------------------------------------------------------------------- /doc/jquery/jszip-utils/dist/jszip-utils-ie.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g\r\n";document.write(b),a.JSZipUtils._getBinaryFromXHR=function(a){for(var b=a.responseBody,c={},d=0;256>d;d++)for(var e=0;256>e;e++)c[String.fromCharCode(d+(e<<8))]=String.fromCharCode(d)+String.fromCharCode(e);var f=IEBinaryToArray_ByteStr(b),g=IEBinaryToArray_ByteStr_Last(b);return f.replace(/[\s\S]/g,function(a){return c[a]})+g}},{}]},{},[1]); 11 | -------------------------------------------------------------------------------- /doc/jquery/jszip-utils/dist/jszip-utils.js: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | !function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.JSZipUtils=e():"undefined"!=typeof global?global.JSZipUtils=e():"undefined"!=typeof self&&(self.JSZipUtils=e())}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o 5 | 6 | (c) 2014 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | !function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.JSZipUtils=a():"undefined"!=typeof global?global.JSZipUtils=a():"undefined"!=typeof self&&(self.JSZipUtils=a())}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g 2 | 3 | 4 | 5 | 6 | Generated Documentation (Untitled) 7 | 8 | 9 | 12 | 13 | 14 | 15 | 16 |
17 | 20 |

index.html

21 |
22 | 23 | 24 | -------------------------------------------------------------------------------- /doc/package-search-index.js: -------------------------------------------------------------------------------- 1 | packageSearchIndex = [{"l":"All Packages","url":"allpackages-index.html"},{"l":"com.bytebank.modelo"},{"l":"com.bytebank.test"}] -------------------------------------------------------------------------------- /doc/package-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/1786-java-string-object/87779e93a6ec83ea7d9adc9bacb45351a9780ec4/doc/package-search-index.zip -------------------------------------------------------------------------------- /doc/resources/glass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/1786-java-string-object/87779e93a6ec83ea7d9adc9bacb45351a9780ec4/doc/resources/glass.png -------------------------------------------------------------------------------- /doc/resources/x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/1786-java-string-object/87779e93a6ec83ea7d9adc9bacb45351a9780ec4/doc/resources/x.png -------------------------------------------------------------------------------- /doc/script.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. 3 | * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 4 | * 5 | * 6 | * 7 | * 8 | * 9 | * 10 | * 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | * 21 | * 22 | * 23 | * 24 | */ 25 | 26 | var moduleSearchIndex; 27 | var packageSearchIndex; 28 | var typeSearchIndex; 29 | var memberSearchIndex; 30 | var tagSearchIndex; 31 | function loadScripts(doc, tag) { 32 | createElem(doc, tag, 'jquery/jszip/dist/jszip.js'); 33 | createElem(doc, tag, 'jquery/jszip-utils/dist/jszip-utils.js'); 34 | if (window.navigator.userAgent.indexOf('MSIE ') > 0 || window.navigator.userAgent.indexOf('Trident/') > 0 || 35 | window.navigator.userAgent.indexOf('Edge/') > 0) { 36 | createElem(doc, tag, 'jquery/jszip-utils/dist/jszip-utils-ie.js'); 37 | } 38 | createElem(doc, tag, 'search.js'); 39 | 40 | $.get(pathtoroot + "module-search-index.zip") 41 | .done(function() { 42 | JSZipUtils.getBinaryContent(pathtoroot + "module-search-index.zip", function(e, data) { 43 | JSZip.loadAsync(data).then(function(zip){ 44 | zip.file("module-search-index.json").async("text").then(function(content){ 45 | moduleSearchIndex = JSON.parse(content); 46 | }); 47 | }); 48 | }); 49 | }); 50 | $.get(pathtoroot + "package-search-index.zip") 51 | .done(function() { 52 | JSZipUtils.getBinaryContent(pathtoroot + "package-search-index.zip", function(e, data) { 53 | JSZip.loadAsync(data).then(function(zip){ 54 | zip.file("package-search-index.json").async("text").then(function(content){ 55 | packageSearchIndex = JSON.parse(content); 56 | }); 57 | }); 58 | }); 59 | }); 60 | $.get(pathtoroot + "type-search-index.zip") 61 | .done(function() { 62 | JSZipUtils.getBinaryContent(pathtoroot + "type-search-index.zip", function(e, data) { 63 | JSZip.loadAsync(data).then(function(zip){ 64 | zip.file("type-search-index.json").async("text").then(function(content){ 65 | typeSearchIndex = JSON.parse(content); 66 | }); 67 | }); 68 | }); 69 | }); 70 | $.get(pathtoroot + "member-search-index.zip") 71 | .done(function() { 72 | JSZipUtils.getBinaryContent(pathtoroot + "member-search-index.zip", function(e, data) { 73 | JSZip.loadAsync(data).then(function(zip){ 74 | zip.file("member-search-index.json").async("text").then(function(content){ 75 | memberSearchIndex = JSON.parse(content); 76 | }); 77 | }); 78 | }); 79 | }); 80 | $.get(pathtoroot + "tag-search-index.zip") 81 | .done(function() { 82 | JSZipUtils.getBinaryContent(pathtoroot + "tag-search-index.zip", function(e, data) { 83 | JSZip.loadAsync(data).then(function(zip){ 84 | zip.file("tag-search-index.json").async("text").then(function(content){ 85 | tagSearchIndex = JSON.parse(content); 86 | }); 87 | }); 88 | }); 89 | }); 90 | if (!moduleSearchIndex) { 91 | createElem(doc, tag, 'module-search-index.js'); 92 | } 93 | if (!packageSearchIndex) { 94 | createElem(doc, tag, 'package-search-index.js'); 95 | } 96 | if (!typeSearchIndex) { 97 | createElem(doc, tag, 'type-search-index.js'); 98 | } 99 | if (!memberSearchIndex) { 100 | createElem(doc, tag, 'member-search-index.js'); 101 | } 102 | if (!tagSearchIndex) { 103 | createElem(doc, tag, 'tag-search-index.js'); 104 | } 105 | $(window).resize(function() { 106 | $('.navPadding').css('padding-top', $('.fixedNav').css("height")); 107 | }); 108 | } 109 | 110 | function createElem(doc, tag, path) { 111 | var script = doc.createElement(tag); 112 | var scriptElement = doc.getElementsByTagName(tag)[0]; 113 | script.src = pathtoroot + path; 114 | scriptElement.parentNode.insertBefore(script, scriptElement); 115 | } 116 | 117 | function show(type) { 118 | count = 0; 119 | for (var key in data) { 120 | var row = document.getElementById(key); 121 | if ((data[key] & type) !== 0) { 122 | row.style.display = ''; 123 | row.className = (count++ % 2) ? rowColor : altColor; 124 | } 125 | else 126 | row.style.display = 'none'; 127 | } 128 | updateTabs(type); 129 | } 130 | 131 | function updateTabs(type) { 132 | for (var value in tabs) { 133 | var sNode = document.getElementById(tabs[value][0]); 134 | var spanNode = sNode.firstChild; 135 | if (value == type) { 136 | sNode.className = activeTableTab; 137 | spanNode.innerHTML = tabs[value][1]; 138 | } 139 | else { 140 | sNode.className = tableTab; 141 | spanNode.innerHTML = "" + tabs[value][1] + ""; 142 | } 143 | } 144 | } 145 | 146 | function updateModuleFrame(pFrame, cFrame) { 147 | top.packageFrame.location = pFrame; 148 | top.classFrame.location = cFrame; 149 | } 150 | -------------------------------------------------------------------------------- /doc/serialized-form.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Serialized Form 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 33 | 36 |
37 | 94 |
95 |
96 |
97 |

Serialized Form

98 |
99 |
100 | 114 |
115 |
116 |
117 | 161 |
162 | 163 | 164 | -------------------------------------------------------------------------------- /doc/type-search-index.js: -------------------------------------------------------------------------------- 1 | typeSearchIndex = [{"p":"com.bytebank.modelo","l":"Administrador"},{"l":"All Classes","url":"allclasses-index.html"},{"p":"com.bytebank.modelo","l":"Autenticable"},{"p":"com.bytebank.modelo","l":"AutenticacionUtil"},{"p":"com.bytebank.modelo","l":"Cliente"},{"p":"com.bytebank.modelo","l":"Contador"},{"p":"com.bytebank.modelo","l":"ControlBonificacion"},{"p":"com.bytebank.modelo","l":"Cuenta"},{"p":"com.bytebank.modelo","l":"CuentaAhorros"},{"p":"com.bytebank.modelo","l":"CuentaCorriente"},{"p":"com.bytebank.modelo","l":"Funcionario"},{"p":"com.bytebank.modelo","l":"Gerente"},{"p":"com.bytebank.modelo","l":"SaldoInsuficienteException"},{"p":"com.bytebank.modelo","l":"SistemaInterno"},{"p":"com.bytebank.test","l":"TestControlBonificacion"},{"p":"com.bytebank.test","l":"TestCuenta"},{"p":"com.bytebank.test","l":"TestCuentaExceptionSaldo"},{"p":"com.bytebank.test","l":"TestFuncionario"},{"p":"com.bytebank.test","l":"TestGerente"},{"p":"com.bytebank.test","l":"TestReferencias"},{"p":"com.bytebank.test","l":"TestSistemaInterno"}] -------------------------------------------------------------------------------- /doc/type-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/1786-java-string-object/87779e93a6ec83ea7d9adc9bacb45351a9780ec4/doc/type-search-index.zip -------------------------------------------------------------------------------- /java-introduccion-objetos.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/com/bytebank/modelo/Administrador.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.modelo; 2 | 3 | public class Administrador extends Funcionario implements Autenticable { 4 | 5 | private AutenticacionUtil util; 6 | 7 | public Administrador() { 8 | this.util = new AutenticacionUtil(); 9 | } 10 | 11 | @Override 12 | public double getBonificacion() { 13 | return this.getSalario(); 14 | } 15 | 16 | @Override 17 | public void setClave(String clave) { 18 | this.util.setClave(clave); 19 | } 20 | 21 | @Override 22 | public boolean iniciarSesion(String clave) { 23 | return this.util.iniciarSesion(clave); 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /src/com/bytebank/modelo/Autenticable.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.modelo; 2 | 3 | public interface Autenticable { 4 | 5 | public void setClave(String clave); 6 | 7 | public boolean iniciarSesion(String clave); 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/com/bytebank/modelo/AutenticacionUtil.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.modelo; 2 | 3 | public class AutenticacionUtil { 4 | 5 | private String clave; 6 | 7 | public boolean iniciarSesion(String clave) { 8 | return this.clave == clave; 9 | } 10 | 11 | public void setClave(String clave) { 12 | this.clave = clave; 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/com/bytebank/modelo/Cliente.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.modelo; 2 | 3 | public class Cliente implements Autenticable { 4 | 5 | // Public es el mas accesible 6 | // Protected 7 | 8 | private String nombre; 9 | private String documento; 10 | private String telefono; 11 | 12 | private AutenticacionUtil util; 13 | 14 | public Cliente() { 15 | this.util = new AutenticacionUtil(); 16 | } 17 | 18 | public String getNombre() { 19 | return nombre; 20 | } 21 | 22 | public void setNombre(String nombre) { 23 | this.nombre = nombre; 24 | } 25 | 26 | public String getDocumento() { 27 | return documento; 28 | } 29 | 30 | public void setDocumento(String documento) { 31 | this.documento = documento; 32 | } 33 | 34 | public String getTelefono() { 35 | return telefono; 36 | } 37 | 38 | public void setTelefono(String telefono) { 39 | this.telefono = telefono; 40 | } 41 | 42 | @Override 43 | public boolean iniciarSesion(String clave) { 44 | return this.util.iniciarSesion(clave); 45 | } 46 | 47 | @Override 48 | public void setClave(String clave) { 49 | this.setClave(clave); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/com/bytebank/modelo/Contador.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.modelo; 2 | 3 | // default 4 | public class Contador extends Funcionario { 5 | 6 | @Override 7 | public double getBonificacion() { 8 | System.out.println("Llamando metodo del Contador"); 9 | return 200; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/com/bytebank/modelo/ControlBonificacion.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.modelo; 2 | 3 | public class ControlBonificacion { 4 | 5 | private double suma; 6 | 7 | public double registrarSalario(Funcionario funcionario) { 8 | this.suma = funcionario.getBonificacion() + this.suma; 9 | System.out.println("Calculo actual: " + this.suma); 10 | return this.suma; 11 | } 12 | 13 | 14 | } 15 | -------------------------------------------------------------------------------- /src/com/bytebank/modelo/Cuenta.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.modelo; 2 | 3 | /** 4 | * Cuenta va a crear nuevas instancias de CuentaCorriente 5 | * 6 | * @version 1.0 7 | * @author diegorojas 8 | * 9 | */ 10 | public abstract class Cuenta { 11 | 12 | // public // Accesible desde cualquier parte 13 | // --default // Accesible dentro del paquete 14 | // --protected // default + clases hijas 15 | // ---private // solo desde la clase misma 16 | 17 | protected double saldo; 18 | private int agencia = 1; 19 | private int numero; 20 | private Cliente titular = new Cliente(); 21 | 22 | private static int total; 23 | 24 | /** 25 | * Instancia una nueva cuenta sin parametros 26 | */ 27 | public Cuenta() { 28 | 29 | } 30 | 31 | /** 32 | * Instancia una cuenta usando agencia y numero 33 | * @param agencia 34 | * @param numero 35 | */ 36 | public Cuenta( int agencia, int numero) { 37 | this.agencia = agencia; 38 | this.numero = numero; 39 | System.out.println("Estoy creando una cuenta " + this.numero); 40 | 41 | Cuenta.total ++; 42 | } 43 | 44 | public abstract void deposita(double valor); 45 | 46 | /** 47 | * Este metodo retira dinero de la cuenta y si ocurre un error 48 | * devuelve una excepcion. 49 | * @param valor 50 | * @throws SaldoInsuficienteException 51 | */ 52 | public void saca(double valor) throws SaldoInsuficienteException { 53 | if (this.saldo < valor) { 54 | throw new SaldoInsuficienteException("No tienes saldo"); 55 | } 56 | 57 | this.saldo -= valor; 58 | } 59 | 60 | public boolean transfiere(double valor, Cuenta destino) { 61 | if(this.saldo >= valor) { 62 | try { 63 | this.saca(valor); 64 | } catch (SaldoInsuficienteException e) { 65 | // TODO Auto-generated catch block 66 | e.printStackTrace(); 67 | } 68 | destino.deposita(valor); 69 | return true; 70 | } else { 71 | return false; 72 | } 73 | } 74 | 75 | public double getSaldo() { 76 | return saldo; 77 | } 78 | 79 | public int getAgencia() { 80 | return agencia; 81 | } 82 | 83 | public void setAgencia(int agencia) { 84 | if (agencia > 0) { 85 | this.agencia = agencia; 86 | } 87 | } 88 | 89 | public int getNumero() { 90 | return numero; 91 | } 92 | 93 | public void setNumero(int numero) { 94 | if (numero > 0) { 95 | this.numero = numero; 96 | } 97 | } 98 | 99 | public Cliente getTitular() { 100 | return titular; 101 | } 102 | 103 | public void setTitular(Cliente titular) { 104 | this.titular = titular; 105 | } 106 | 107 | public static int getTotal() { 108 | return Cuenta.total; 109 | } 110 | 111 | @Override 112 | public String toString() { 113 | String cuenta = "Numero: " + this.numero + ", Agencia:" + this.agencia; 114 | return cuenta; 115 | } 116 | 117 | } 118 | -------------------------------------------------------------------------------- /src/com/bytebank/modelo/CuentaAhorros.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.modelo; 2 | 3 | public class CuentaAhorros extends Cuenta { 4 | 5 | public CuentaAhorros(int agencia, int numero) { 6 | super(agencia, numero); 7 | } 8 | 9 | @Override 10 | public void deposita(double valor) { 11 | this.saldo = this.saldo + valor; 12 | } 13 | 14 | @Override 15 | public String toString() { 16 | // TODO Auto-generated method stub 17 | return super.toString(); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /src/com/bytebank/modelo/CuentaCorriente.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.modelo; 2 | 3 | public class CuentaCorriente extends Cuenta { 4 | 5 | public CuentaCorriente( int agencia, int numero) { 6 | super(agencia, numero); 7 | } 8 | 9 | @Override 10 | public void saca(double valor) throws SaldoInsuficienteException { 11 | double comision = 0.2; 12 | super.saca(valor + comision); 13 | } 14 | 15 | @Override 16 | public void deposita(double valor) { 17 | // TODO Auto-generated method stub 18 | 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/com/bytebank/modelo/Funcionario.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.modelo; 2 | 3 | 4 | public abstract class Funcionario { 5 | 6 | private String nombre; 7 | private String documento; 8 | private double salario; 9 | private int tipo; 10 | 11 | protected String prueba; 12 | 13 | public Funcionario() { 14 | 15 | } 16 | 17 | public String getNombre() { 18 | return nombre; 19 | } 20 | public void setNombre(String nombre) { 21 | this.nombre = nombre; 22 | } 23 | public String getDocumento() { 24 | return documento; 25 | } 26 | public void setDocumento(String documento) { 27 | this.documento = documento; 28 | } 29 | public double getSalario() { 30 | return salario; 31 | } 32 | public void setSalario(double salario) { 33 | this.salario = salario; 34 | } 35 | 36 | public abstract double getBonificacion(); 37 | 38 | public int getTipo() { 39 | return tipo; 40 | } 41 | 42 | public void setTipo(int tipo) { 43 | this.tipo = tipo; 44 | } 45 | 46 | 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/com/bytebank/modelo/Gerente.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.modelo; 2 | 3 | // extiende de 4 | public class Gerente extends Funcionario implements Autenticable { 5 | 6 | // Sobre-escritura de metodo 7 | public double getBonificacion() { 8 | System.out.println("EJECUTANDO DESDE GERENTE"); 9 | return 2000; 10 | } 11 | 12 | @Override 13 | public void setClave(String clave) { 14 | // TODO Auto-generated method stub 15 | 16 | } 17 | 18 | @Override 19 | public boolean iniciarSesion(String clave) { 20 | // TODO Auto-generated method stub 21 | return false; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/com/bytebank/modelo/SaldoInsuficienteException.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.modelo; 2 | 3 | public class SaldoInsuficienteException extends Exception { 4 | 5 | public SaldoInsuficienteException(String mensaje) { 6 | super(mensaje); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/com/bytebank/modelo/SistemaInterno.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.modelo; 2 | 3 | public class SistemaInterno { 4 | 5 | private String clave = "AluraCursosOnLine"; 6 | 7 | public boolean autentica(Autenticable gerente) { 8 | boolean puedeIniciarSesion = gerente.iniciarSesion(clave); 9 | if (puedeIniciarSesion) { 10 | System.out.println("Login exitoso"); 11 | return true; 12 | } else { 13 | System.out.println("Error en login"); 14 | return false; 15 | } 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/com/bytebank/test/TestControlBonificacion.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.test; 2 | 3 | import com.bytebank.modelo.*; 4 | 5 | public class TestControlBonificacion { 6 | 7 | private static void main(String[] args) { 8 | Funcionario diego = new Contador(); 9 | diego.setSalario(2000); 10 | 11 | com.bytebank.modelo.Gerente jimena = new com.bytebank.modelo.Gerente(); 12 | jimena.setSalario(10000); 13 | 14 | com.bytebank.modelo.Contador alexiz = new com.bytebank.modelo.Contador(); 15 | alexiz.setSalario(5000); 16 | 17 | ControlBonificacion controlBonificacion = 18 | new ControlBonificacion(); 19 | 20 | 21 | controlBonificacion.registrarSalario(diego); 22 | controlBonificacion.registrarSalario(jimena); 23 | controlBonificacion.registrarSalario(alexiz); 24 | } 25 | 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/com/bytebank/test/TestCuenta.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.test; 2 | 3 | import com.bytebank.modelo.CuentaAhorros; 4 | import com.bytebank.modelo.CuentaCorriente; 5 | 6 | public class TestCuenta { 7 | 8 | public static void main(String[] args) { 9 | CuentaCorriente cc = null; 10 | int num = 0; 11 | int resultado = 30/num; 12 | System.out.println(resultado); 13 | 14 | CuentaAhorros ca = new CuentaAhorros(2, 3); 15 | cc.deposita(2000); 16 | cc.transfiere(1000, ca); 17 | 18 | System.out.println(cc.getSaldo()); 19 | System.out.println(ca.getSaldo()); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/com/bytebank/test/TestCuentaExceptionSaldo.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.test; 2 | 3 | import com.bytebank.modelo.Cuenta; 4 | import com.bytebank.modelo.CuentaAhorros; 5 | import com.bytebank.modelo.SaldoInsuficienteException; 6 | 7 | public class TestCuentaExceptionSaldo { 8 | 9 | public static void main(String[] args) { 10 | Cuenta cuenta = new CuentaAhorros(123, 456); 11 | cuenta.deposita(210); 12 | try { 13 | cuenta.saca(2000); 14 | cuenta.saca(100); 15 | } catch (SaldoInsuficienteException e) { 16 | e.printStackTrace(); 17 | } 18 | 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/com/bytebank/test/TestFuncionario.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.test; 2 | 3 | import com.bytebank.modelo.Contador; 4 | import com.bytebank.modelo.Funcionario; 5 | 6 | public class TestFuncionario { 7 | 8 | public static void main(String[] args) { 9 | Funcionario diego = new Contador(); 10 | diego.setDocumento("Diego"); 11 | diego.setDocumento("444556665"); 12 | diego.setSalario(2000); 13 | diego.setTipo(0); 14 | 15 | System.out.println(diego.getSalario()); 16 | System.out.println(diego.getBonificacion()); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/com/bytebank/test/TestGerente.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.test; 2 | 3 | public class TestGerente { 4 | 5 | public static void main(String[] args) { 6 | 7 | // package + classname 8 | com.bytebank.modelo.Gerente gerente = new com.bytebank.modelo.Gerente(); 9 | // gerente.setSalario(5000); 10 | // Funcionario gerente = new Funcionario(); 11 | gerente.setSalario(6000); 12 | gerente.setClave("AluraCursosOnLine"); 13 | gerente.setTipo(1); 14 | 15 | 16 | System.out.println(gerente.getBonificacion()); 17 | System.out.println(gerente.iniciarSesion("AluraCursosOnLine")); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /src/com/bytebank/test/TestReferencias.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.test; 2 | 3 | import com.bytebank.modelo.Funcionario; 4 | import com.bytebank.modelo.Gerente; 5 | 6 | public class TestReferencias { 7 | 8 | public static void main(String[] args) { 9 | 10 | // Elemento mas generico puede ser adaptado 11 | // al elemento mas especifico 12 | Funcionario funcionario = new Gerente(); 13 | funcionario.setNombre("Diego"); 14 | 15 | Gerente gerente = new Gerente(); 16 | gerente.setNombre("Jimena"); 17 | 18 | funcionario.setSalario(2000); 19 | gerente.setSalario(10000); 20 | 21 | gerente.iniciarSesion("_ddddd"); 22 | 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/com/bytebank/test/TestSistemaInterno.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.test; 2 | 3 | import com.bytebank.modelo.Administrador; 4 | import com.bytebank.modelo.Gerente; 5 | import com.bytebank.modelo.SistemaInterno; 6 | 7 | public class TestSistemaInterno { 8 | 9 | public static void main(String[] args) { 10 | SistemaInterno sistema = new SistemaInterno(); 11 | Gerente gerente1 = new Gerente(); 12 | Administrador admin = new Administrador(); 13 | 14 | sistema.autentica(gerente1); 15 | sistema.autentica(admin); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/com/bytebank/test/TestString.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.test; 2 | 3 | import com.bytebank.modelo.CuentaAhorros; 4 | 5 | public class TestString { 6 | 7 | public static void main(String[] args) { 8 | 9 | String nombre = "Alura"; // Inmutable 10 | 11 | // No utilizada en el mundo real 12 | // String nombre2 = new String("Alura"); 13 | 14 | System.out.println("Antes de metodo: " + nombre); 15 | nombre = nombre.replace("A", "a"); 16 | nombre = nombre.concat(" cursos online"); 17 | nombre = nombre.toUpperCase(); 18 | nombre = nombre.toLowerCase(); 19 | //01234 20 | char letra = nombre.charAt(3); 21 | int indice = nombre.indexOf("e"); 22 | 23 | Object cuenta = new CuentaAhorros(344, 544); 24 | 25 | printLine(nombre); 26 | printLine(letra); 27 | printLine(indice); 28 | printLine(new CuentaAhorros(200, 300)); 29 | 30 | } 31 | 32 | public static void printLine(Object valor) { 33 | System.out.println(valor.toString()); 34 | } 35 | // public static void printLine(String valor) { 36 | // System.out.println(valor); 37 | // } 38 | // public static void printLine(char valor) { 39 | // System.out.println(valor); 40 | // } 41 | // public static void printLine(CuentaAhorros valor) { 42 | // System.out.println(valor); 43 | // } 44 | 45 | 46 | } 47 | --------------------------------------------------------------------------------