├── doc ├── element-list ├── resources │ ├── x.png │ └── glass.png ├── type-search-index.zip ├── member-search-index.zip ├── package-search-index.zip ├── package-search-index.js ├── jquery │ ├── images │ │ ├── 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 │ │ ├── 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 │ ├── jszip-utils │ │ └── dist │ │ │ ├── jszip-utils-ie.min.js │ │ │ ├── jszip-utils.min.js │ │ │ ├── jszip-utils-ie.js │ │ │ └── jszip-utils.js │ ├── jquery-ui.structure.min.css │ └── jquery-ui.structure.css ├── overview-summary.html ├── type-search-index.js ├── allclasses.html ├── deprecated-list.html ├── constant-values.html ├── com │ └── bytebank │ │ ├── test │ │ ├── package-use.html │ │ ├── class-use │ │ │ ├── TestCuenta.html │ │ │ ├── TestGerente.html │ │ │ ├── TestFuncionario.html │ │ │ ├── TestReferencias.html │ │ │ ├── TestSistemaInterno.html │ │ │ ├── TestControlBonificacion.html │ │ │ └── TestCuentaExceptionSaldo.html │ │ ├── package-tree.html │ │ └── package-summary.html │ │ └── modelo │ │ └── class-use │ │ ├── Gerente.html │ │ ├── Contador.html │ │ ├── Administrador.html │ │ ├── CuentaAhorros.html │ │ ├── SistemaInterno.html │ │ ├── CuentaCorriente.html │ │ ├── AutenticacionUtil.html │ │ └── ControlBonificacion.html ├── index.html ├── serialized-form.html ├── script.js ├── allpackages-index.html ├── member-search-index.js └── index-files │ ├── index-8.html │ ├── index-4.html │ └── index-3.html └── src └── com └── bytebank ├── modelo ├── Autenticable.java ├── SaldoInsuficienteException.java ├── Contador.java ├── AutenticacionUtil.java ├── ControlBonificacion.java ├── CuentaAhorros.java ├── SistemaInterno.java ├── CuentaCorriente.java ├── GuardaCuentas.java ├── GuardaReferencias.java ├── Administrador.java ├── Gerente.java ├── Funcionario.java ├── Cliente.java └── Cuenta.java └── test ├── TestSistemaInterno.java ├── TestFuncionario.java ├── TestCuentaExceptionSaldo.java ├── TestCuenta.java ├── TestGerente.java ├── TestGuardaCuentas.java ├── TestReferencias.java ├── TestGuardaReferencias.java ├── TestControlBonificacion.java ├── TestMain.java ├── TestWrappers.java ├── TestRepasoArray.java ├── TestArregloReferencias.java ├── TestString.java ├── TestArrayList.java ├── TestLambda.java └── TestOrdenarLista.java /doc/element-list: -------------------------------------------------------------------------------- 1 | com.bytebank.modelo 2 | com.bytebank.test 3 | -------------------------------------------------------------------------------- /doc/resources/x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/java-util-collections-lambdas/HEAD/doc/resources/x.png -------------------------------------------------------------------------------- /doc/resources/glass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/java-util-collections-lambdas/HEAD/doc/resources/glass.png -------------------------------------------------------------------------------- /doc/type-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/java-util-collections-lambdas/HEAD/doc/type-search-index.zip -------------------------------------------------------------------------------- /doc/member-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/java-util-collections-lambdas/HEAD/doc/member-search-index.zip -------------------------------------------------------------------------------- /doc/package-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/java-util-collections-lambdas/HEAD/doc/package-search-index.zip -------------------------------------------------------------------------------- /doc/package-search-index.js: -------------------------------------------------------------------------------- 1 | packageSearchIndex = [{"l":"All Packages","url":"allpackages-index.html"},{"l":"com.bytebank.modelo"},{"l":"com.bytebank.test"}] -------------------------------------------------------------------------------- /doc/jquery/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/java-util-collections-lambdas/HEAD/doc/jquery/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /doc/jquery/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/java-util-collections-lambdas/HEAD/doc/jquery/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /doc/jquery/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/java-util-collections-lambdas/HEAD/doc/jquery/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /doc/jquery/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/java-util-collections-lambdas/HEAD/doc/jquery/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /doc/jquery/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/java-util-collections-lambdas/HEAD/doc/jquery/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /doc/jquery/images/ui-bg_glass_55_fbf9ee_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-es-cursos/java-util-collections-lambdas/HEAD/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/java-util-collections-lambdas/HEAD/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/java-util-collections-lambdas/HEAD/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/java-util-collections-lambdas/HEAD/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/java-util-collections-lambdas/HEAD/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/java-util-collections-lambdas/HEAD/doc/jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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/modelo/GuardaCuentas.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.modelo; 2 | 3 | public class GuardaCuentas { 4 | 5 | // Crear un objeto para guardar muchas Cuentas 6 | // Permitirnos agregar cuentas con un metodo 7 | // guardaCuentas.adiciona(cuenta); 8 | // obtener, remover, etc. 9 | 10 | Cuenta[] cuenta = new Cuenta[10]; 11 | int indice = 0; 12 | 13 | 14 | // [X | X | X | X | ... | ] 15 | public void adicionar(Cuenta cc) { 16 | cuenta[indice] = cc; 17 | indice++; 18 | } 19 | 20 | public Cuenta obtener(int indice) { 21 | return cuenta[indice]; 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /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/modelo/GuardaReferencias.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.modelo; 2 | 3 | public class GuardaReferencias { 4 | 5 | // Crear un objeto para guardar muchas Cuentas 6 | // Permitirnos agregar cuentas con un metodo 7 | // guardaCuentas.adiciona(cuenta); 8 | // obtener, remover, etc. 9 | 10 | Object[] referencia = new Object[10]; 11 | int indice = 0; 12 | 13 | 14 | // [X | X | X | X | ... | ] 15 | public void adicionar(Object cc) { 16 | referencia[indice] = cc; 17 | indice++; 18 | } 19 | 20 | public Object obtener(int indice) { 21 | return referencia[indice]; 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /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/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/test/TestGuardaCuentas.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.test; 2 | 3 | import com.bytebank.modelo.Cuenta; 4 | import com.bytebank.modelo.CuentaCorriente; 5 | import com.bytebank.modelo.GuardaCuentas; 6 | 7 | public class TestGuardaCuentas { 8 | 9 | public static void main(String[] args) { 10 | 11 | GuardaCuentas guardaCuentas = new GuardaCuentas(); 12 | Cuenta cc = new CuentaCorriente(11, 22); 13 | guardaCuentas.adicionar(cc); 14 | Cuenta cc2 = new CuentaCorriente(22,44); 15 | guardaCuentas.adicionar(cc2); 16 | 17 | System.out.println(guardaCuentas.obtener(0)); 18 | System.out.println(guardaCuentas.obtener(1)); 19 | 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /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/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/TestGuardaReferencias.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.test; 2 | 3 | import com.bytebank.modelo.Cuenta; 4 | import com.bytebank.modelo.CuentaCorriente; 5 | import com.bytebank.modelo.GuardaCuentas; 6 | import com.bytebank.modelo.GuardaReferencias; 7 | 8 | public class TestGuardaReferencias { 9 | 10 | public static void main(String[] args) { 11 | 12 | GuardaReferencias guardaReferencias = new GuardaReferencias(); 13 | Cuenta cc = new CuentaCorriente(11, 22); 14 | guardaReferencias.adicionar(cc); 15 | Cuenta cc2 = new CuentaCorriente(22,44); 16 | guardaReferencias.adicionar(cc2); 17 | 18 | System.out.println(guardaReferencias.obtener(0)); 19 | System.out.println(guardaReferencias.obtener(1)); 20 | 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /doc/overview-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Generated Documentation (Untitled) 7 | 8 | 9 | 12 | 13 | 14 | 15 | 16 |
17 | 20 |

index.html

21 |
22 | 23 | 24 | -------------------------------------------------------------------------------- /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/TestMain.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.test; 2 | 3 | public class TestMain { 4 | 5 | public static void main(String[] args) { 6 | 7 | for (int i = 0; i < args.length; i++) { 8 | System.out.println(args[i]); 9 | } 10 | 11 | int edad = 20; 12 | int edad2 = 15; 13 | int edad3 = 67; 14 | 15 | //Quiero agruparlas en una sola referencia 16 | 17 | // indices 0 1 2 3 4 18 | // [ 0 | 0 | 30 | 0 | 0 ] 19 | int[] edades = new int[5]; 20 | edades[2] = 30; 21 | 22 | System.out.println(edades[2]); 23 | System.out.println(edades[0]); 24 | //System.out.println(edades[5]); Da exception!! 25 | 26 | int tamanoArray = edades.length; 27 | System.out.println(tamanoArray); 28 | 29 | for (int i = 0; i < edades.length; i++) { 30 | System.out.println(edades[i]); 31 | } 32 | 33 | // [ X | | |X | | ] 34 | 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/com/bytebank/test/TestWrappers.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.test; 2 | 3 | import com.bytebank.modelo.Cuenta; 4 | import com.bytebank.modelo.CuentaAhorros; 5 | import com.bytebank.modelo.CuentaCorriente; 6 | 7 | public class TestWrappers { 8 | 9 | public static void main(String[] args) { 10 | 11 | Double numeroDoble = 33.0; // autoboxing 12 | Boolean verdadero = true; // autoboxing 13 | 14 | Double numeroDouble2 = Double.valueOf(33); 15 | System.out.println(numeroDouble2); 16 | 17 | String numeroString = "43"; // autoboxing 18 | String numeroString2 = new String("43"); 19 | 20 | Double stringToDouble = Double.valueOf(numeroString); 21 | Integer stringToInteger = Integer.valueOf(numeroString); 22 | 23 | System.out.println(stringToDouble); 24 | System.out.println(stringToInteger); 25 | 26 | Number numero = Integer.valueOf(5); 27 | 28 | double numeroDoublePrim = numero.doubleValue(); // unboxing 29 | 30 | Boolean falso = Boolean.FALSE; 31 | 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /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"}] -------------------------------------------------------------------------------- /src/com/bytebank/test/TestRepasoArray.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.test; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | public class TestRepasoArray { 7 | 8 | public static void main(String[] args) { 9 | 10 | int[] numeros = new int[10]; 11 | 12 | int numero = 40; 13 | // WRAPPER 14 | // Integer numeroObjeto = new Integer(40); deprecado 15 | Integer numeroObjeto = Integer.valueOf(40); 16 | 17 | List lista = new ArrayList(); 18 | // primitivo != object 19 | lista.add(numero); // autoboxing 20 | lista.add(Integer.valueOf(40)); 21 | lista.add(numeroObjeto); 22 | 23 | // unboxing 24 | // int valorPrimitivo = numeroObjeto; 25 | int valorPrimitivo = numeroObjeto.intValue(); 26 | 27 | byte byteInteger= numeroObjeto.byteValue(); 28 | double doubleInteger = numeroObjeto.doubleValue(); 29 | float floatIOnteger = numeroObjeto.floatValue(); 30 | 31 | System.out.println(Integer.MAX_VALUE); 32 | System.out.println(Integer.MIN_VALUE); 33 | 34 | System.out.println(Integer.SIZE); // bits 35 | System.out.println(Integer.BYTES);// 4 36 | 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /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/test/TestArregloReferencias.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.test; 2 | 3 | import com.bytebank.modelo.Cliente; 4 | import com.bytebank.modelo.Cuenta; 5 | import com.bytebank.modelo.CuentaAhorros; 6 | import com.bytebank.modelo.CuentaCorriente; 7 | 8 | public class TestArregloReferencias { 9 | 10 | public static void main(String[] args) { 11 | 12 | Object[] referencias = new Object[5]; 13 | // [ new |cc |null |null |null ] 14 | CuentaCorriente cc = new CuentaCorriente(23, 44); 15 | 16 | 17 | referencias[1] = cc; 18 | 19 | Cliente cliente = new Cliente(); 20 | referencias[4] = cliente; 21 | 22 | 23 | Cliente obtenido = (Cliente) referencias[4]; 24 | System.out.println(obtenido); 25 | 26 | CuentaAhorros ca = new CuentaAhorros(44, 55); 27 | referencias[3] = ca; 28 | 29 | referencias[0] = new CuentaCorriente(11, 99); 30 | System.out.println(referencias[0]); 31 | 32 | // Cast 33 | CuentaCorriente cuenta = (CuentaCorriente) referencias[1]; 34 | System.out.println(cuenta); 35 | 36 | for (int i = 0; i < referencias.length; i++) { 37 | System.out.println(referencias[i]); 38 | } 39 | 40 | 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/com/bytebank/test/TestArrayList.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.test; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Collection; 5 | import java.util.LinkedList; 6 | import java.util.List; 7 | import java.util.Vector; 8 | 9 | import com.bytebank.modelo.Cliente; 10 | import com.bytebank.modelo.Cuenta; 11 | import com.bytebank.modelo.CuentaCorriente; 12 | 13 | public class TestArrayList { 14 | 15 | public static void main(String[] args) { 16 | 17 | // <> Forzando a que acepte solo un tipo de objeto 18 | 19 | // LinkedList funciona con otra estructura de datos 20 | // List listaCLientes = new LinkedList<>(); 21 | 22 | // El Vector es thread safe, entonces crea una unica instancia 23 | // para todas las pilas de ejecucion 24 | // List lista = new Vector(); 25 | 26 | // Obligatorio especificar No es obligatorio 27 | 28 | List lista = new ArrayList(); 29 | 30 | // referencia Objeto -> HEAP 31 | Cuenta cc = new CuentaCorriente(11, 22); 32 | Cuenta cc2 = new CuentaCorriente(13, 42); 33 | Cuenta cc3 = new CuentaCorriente(11, 22); 34 | 35 | lista.add(cc); 36 | lista.add(cc2); 37 | 38 | // Cliente cliente = new Cliente(); 39 | // lista.add(cliente); 40 | 41 | Cuenta obtenerCuenta = lista.get(0); 42 | System.out.println(obtenerCuenta); 43 | 44 | for (int i = 0; i < lista.size(); i++) { 45 | System.out.println(lista.get(i)); 46 | } 47 | 48 | // Por cada cuenta : lista 49 | for (Cuenta cuenta : lista) { 50 | System.out.println(cuenta); 51 | } 52 | 53 | boolean contiene = lista.contains(cc3); 54 | // Por valor 55 | if (contiene) { 56 | System.out.println("Si, es igual (equals)"); 57 | } 58 | 59 | 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /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.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){"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 lista = new ArrayList<>(); 43 | lista.add(cc1); 44 | lista.add(cc2); 45 | lista.add(cc3); 46 | lista.add(cc4); 47 | 48 | System.out.println("Antes de ordenar"); 49 | for (Cuenta cuenta : lista) { 50 | System.out.println(cuenta); 51 | } 52 | 53 | // Usando Lambdas 54 | lista.sort((Cuenta o1, Cuenta o2) -> 55 | Integer.compare(o1.getNumero(), o2.getNumero()) 56 | ); 57 | 58 | System.out.println("Despues de ordenar"); 59 | for (Cuenta cuenta : lista) { 60 | System.out.println(cuenta); 61 | } 62 | 63 | Collections.sort(lista, (c1, c2) -> 64 | c1.getTitular().getNombre() 65 | .compareTo(c2.getTitular().getNombre()) 66 | ); 67 | 68 | 69 | System.out.println("Despues de ordenar por nombre titular"); 70 | // for (Cuenta cuenta : lista) { 71 | // System.out.println(cuenta); 72 | // } 73 | 74 | lista.forEach(cuenta -> System.out.println(cuenta)); 75 | 76 | Collections.sort(lista); 77 | 78 | System.out.println("Despues de ordenar por orden natural"); 79 | for (Cuenta cuenta : lista) { 80 | System.out.println(cuenta); 81 | } 82 | } 83 | 84 | } 85 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /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 implements Comparable { 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 | + ", Titular: " + this.titular.getNombre(); 115 | return cuenta; 116 | } 117 | 118 | @Override 119 | public boolean equals(Object obj) { 120 | // Basada en valores 121 | Cuenta cuenta = (Cuenta) obj; 122 | return this.agencia == cuenta.getAgencia() && 123 | this.numero == cuenta.getNumero(); 124 | } 125 | 126 | @Override 127 | public int compareTo(Cuenta o) { 128 | // Orden natural: Numero Agencia 129 | //return Integer.compare(this.agencia, o.getAgencia()); 130 | // Orden natural: Saldo 131 | return Double.compare(this.getSaldo(), o.getSaldo()); 132 | } 133 | 134 | 135 | } 136 | -------------------------------------------------------------------------------- /src/com/bytebank/test/TestOrdenarLista.java: -------------------------------------------------------------------------------- 1 | package com.bytebank.test; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Collections; 5 | import java.util.Comparator; 6 | import java.util.List; 7 | 8 | import com.bytebank.modelo.Cliente; 9 | import com.bytebank.modelo.Cuenta; 10 | import com.bytebank.modelo.CuentaAhorros; 11 | import com.bytebank.modelo.CuentaCorriente; 12 | 13 | public class TestOrdenarLista { 14 | 15 | public static void main(String[] args) { 16 | 17 | Cuenta cc1 = new CuentaCorriente(62, 33); 18 | Cliente clienteCC1 = new Cliente(); 19 | clienteCC1.setNombre("Diego"); 20 | cc1.setTitular(clienteCC1); 21 | cc1.deposita(333.0); 22 | 23 | Cuenta cc2 = new CuentaAhorros(32, 44); 24 | Cliente clienteCC2 = new Cliente(); 25 | clienteCC2.setNombre("Renato"); 26 | cc2.setTitular(clienteCC2); 27 | cc2.deposita(444.0); 28 | 29 | Cuenta cc3 = new CuentaCorriente(22, 11); 30 | Cliente clienteCC3 = new Cliente(); 31 | clienteCC3.setNombre("Liam"); 32 | cc3.setTitular(clienteCC3); 33 | cc3.deposita(111.0); 34 | 35 | Cuenta cc4 = new CuentaAhorros(2, 22); 36 | Cliente clienteCC4 = new Cliente(); 37 | clienteCC4.setNombre("Noel"); 38 | cc4.setTitular(clienteCC4); 39 | cc4.deposita(222.0); 40 | 41 | 42 | List lista = new ArrayList<>(); 43 | lista.add(cc1); 44 | lista.add(cc2); 45 | lista.add(cc3); 46 | lista.add(cc4); 47 | 48 | System.out.println("Antes de ordenar"); 49 | for (Cuenta cuenta : lista) { 50 | System.out.println(cuenta); 51 | } 52 | 53 | // Ordenar las cuentas 54 | // Cualquier clase hija de Cuenta 55 | // Comparator c 56 | // Comparator comparator = new OrdenadorPorNumeroCuenta(); // Implementacion de la interfaz 57 | //lista.sort(comparator); 58 | lista.sort(new Comparator() { 59 | @Override 60 | public int compare(Cuenta o1, Cuenta o2) { 61 | return Integer.compare(o1.getNumero(), o2.getNumero()); 62 | } 63 | }); 64 | 65 | System.out.println("Despues de ordenar"); 66 | for (Cuenta cuenta : lista) { 67 | System.out.println(cuenta); 68 | } 69 | 70 | // Comparator comparatorNombreTitular = new OrdenadorPorNombreTitular(); 71 | //lista.sort(new OrdenadorPorNombreTitular()); 72 | 73 | 74 | // Forma antigua 75 | Collections.sort(lista, new Comparator() { 76 | @Override 77 | public int compare(Cuenta o1, Cuenta o2) { 78 | return o1.getTitular().getNombre() 79 | .compareTo(o2.getTitular().getNombre()); 80 | } 81 | }); 82 | 83 | 84 | 85 | System.out.println("Despues de ordenar por nombre titular"); 86 | for (Cuenta cuenta : lista) { 87 | System.out.println(cuenta); 88 | } 89 | 90 | Collections.sort(lista); 91 | 92 | System.out.println("Despues de ordenar por orden natural"); 93 | for (Cuenta cuenta : lista) { 94 | System.out.println(cuenta); 95 | } 96 | } 97 | 98 | } 99 | 100 | class OrdenadorPorNumeroCuenta implements Comparator { 101 | 102 | @Override 103 | public int compare(Cuenta o1, Cuenta o2) { 104 | // Forma basica 105 | // if (o1.getNumero() == o2.getNumero()) { 106 | // return 0; 107 | // } else if (o1.getNumero() > o2.getNumero()) { 108 | // return 1; 109 | // } else { 110 | // return -1; 111 | // } 112 | 113 | // Forma intermedia 114 | // return o1.getNumero() - o2.getNumero(); 115 | 116 | // Forma Wrapper 117 | return Integer.compare(o1.getNumero(), o2.getNumero()); 118 | } 119 | 120 | } 121 | 122 | class OrdenadorPorNombreTitular implements Comparator { 123 | 124 | @Override 125 | public int compare(Cuenta o1, Cuenta o2) { 126 | return o1.getTitular().getNombre() 127 | .compareTo(o2.getTitular().getNombre()); 128 | } 129 | 130 | } 131 | -------------------------------------------------------------------------------- /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 |
102 | 146 |
147 | 148 | 149 | -------------------------------------------------------------------------------- /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 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 |
104 | 148 |
149 | 150 | 151 | -------------------------------------------------------------------------------- /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 |
102 | 146 |
147 | 148 | 149 | -------------------------------------------------------------------------------- /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 |
117 | 161 |
162 | 163 | 164 | -------------------------------------------------------------------------------- /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/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 |
102 | 146 |
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 |
102 | 146 |
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 |
102 | 146 |
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 |
102 | 146 |
147 | 148 | 149 | -------------------------------------------------------------------------------- /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/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 |
102 | 146 |
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 |
102 | 146 |
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 |
102 | 146 |
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 |
102 | 146 |
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 |
102 | 146 |
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 |
102 | 146 |
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 |
102 | 146 |
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 |
102 | 146 |
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 |
102 | 146 |
147 | 148 | 149 | -------------------------------------------------------------------------------- /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 |
102 | 146 |
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 |
102 | 146 |
147 | 148 | 149 | -------------------------------------------------------------------------------- /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 |
    101 |
  • 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 |
    Package Summary 
    PackageDescription
    com.bytebank.modelo 
    com.bytebank.test 
    119 |
  • 120 |
121 |
122 |
123 |
124 | 168 |
169 | 170 | 171 | -------------------------------------------------------------------------------- /doc/member-search-index.js: -------------------------------------------------------------------------------- 1 | memberSearchIndex = [{"p":"com.bytebank.modelo","c":"Administrador","l":"Administrador()","url":"%3Cinit%3E()"},{"p":"com.bytebank.modelo","c":"SistemaInterno","l":"autentica(Autenticable)","url":"autentica(com.bytebank.modelo.Autenticable)"},{"p":"com.bytebank.modelo","c":"AutenticacionUtil","l":"AutenticacionUtil()","url":"%3Cinit%3E()"},{"p":"com.bytebank.modelo","c":"Cliente","l":"Cliente()","url":"%3Cinit%3E()"},{"p":"com.bytebank.modelo","c":"Contador","l":"Contador()","url":"%3Cinit%3E()"},{"p":"com.bytebank.modelo","c":"ControlBonificacion","l":"ControlBonificacion()","url":"%3Cinit%3E()"},{"p":"com.bytebank.modelo","c":"Cuenta","l":"Cuenta()","url":"%3Cinit%3E()"},{"p":"com.bytebank.modelo","c":"Cuenta","l":"Cuenta(int, int)","url":"%3Cinit%3E(int,int)"},{"p":"com.bytebank.modelo","c":"CuentaAhorros","l":"CuentaAhorros(int, int)","url":"%3Cinit%3E(int,int)"},{"p":"com.bytebank.modelo","c":"CuentaCorriente","l":"CuentaCorriente(int, int)","url":"%3Cinit%3E(int,int)"},{"p":"com.bytebank.modelo","c":"Cuenta","l":"deposita(double)"},{"p":"com.bytebank.modelo","c":"CuentaAhorros","l":"deposita(double)"},{"p":"com.bytebank.modelo","c":"CuentaCorriente","l":"deposita(double)"},{"p":"com.bytebank.modelo","c":"Funcionario","l":"Funcionario()","url":"%3Cinit%3E()"},{"p":"com.bytebank.modelo","c":"Gerente","l":"Gerente()","url":"%3Cinit%3E()"},{"p":"com.bytebank.modelo","c":"Cuenta","l":"getAgencia()"},{"p":"com.bytebank.modelo","c":"Administrador","l":"getBonificacion()"},{"p":"com.bytebank.modelo","c":"Contador","l":"getBonificacion()"},{"p":"com.bytebank.modelo","c":"Funcionario","l":"getBonificacion()"},{"p":"com.bytebank.modelo","c":"Gerente","l":"getBonificacion()"},{"p":"com.bytebank.modelo","c":"Cliente","l":"getDocumento()"},{"p":"com.bytebank.modelo","c":"Funcionario","l":"getDocumento()"},{"p":"com.bytebank.modelo","c":"Cliente","l":"getNombre()"},{"p":"com.bytebank.modelo","c":"Funcionario","l":"getNombre()"},{"p":"com.bytebank.modelo","c":"Cuenta","l":"getNumero()"},{"p":"com.bytebank.modelo","c":"Funcionario","l":"getSalario()"},{"p":"com.bytebank.modelo","c":"Cuenta","l":"getSaldo()"},{"p":"com.bytebank.modelo","c":"Cliente","l":"getTelefono()"},{"p":"com.bytebank.modelo","c":"Funcionario","l":"getTipo()"},{"p":"com.bytebank.modelo","c":"Cuenta","l":"getTitular()"},{"p":"com.bytebank.modelo","c":"Cuenta","l":"getTotal()"},{"p":"com.bytebank.modelo","c":"Administrador","l":"iniciarSesion(String)","url":"iniciarSesion(java.lang.String)"},{"p":"com.bytebank.modelo","c":"Autenticable","l":"iniciarSesion(String)","url":"iniciarSesion(java.lang.String)"},{"p":"com.bytebank.modelo","c":"AutenticacionUtil","l":"iniciarSesion(String)","url":"iniciarSesion(java.lang.String)"},{"p":"com.bytebank.modelo","c":"Cliente","l":"iniciarSesion(String)","url":"iniciarSesion(java.lang.String)"},{"p":"com.bytebank.modelo","c":"Gerente","l":"iniciarSesion(String)","url":"iniciarSesion(java.lang.String)"},{"p":"com.bytebank.test","c":"TestCuenta","l":"main(String[])","url":"main(java.lang.String[])"},{"p":"com.bytebank.test","c":"TestCuentaExceptionSaldo","l":"main(String[])","url":"main(java.lang.String[])"},{"p":"com.bytebank.test","c":"TestFuncionario","l":"main(String[])","url":"main(java.lang.String[])"},{"p":"com.bytebank.test","c":"TestGerente","l":"main(String[])","url":"main(java.lang.String[])"},{"p":"com.bytebank.test","c":"TestReferencias","l":"main(String[])","url":"main(java.lang.String[])"},{"p":"com.bytebank.test","c":"TestSistemaInterno","l":"main(String[])","url":"main(java.lang.String[])"},{"p":"com.bytebank.modelo","c":"ControlBonificacion","l":"registrarSalario(Funcionario)","url":"registrarSalario(com.bytebank.modelo.Funcionario)"},{"p":"com.bytebank.modelo","c":"Cuenta","l":"saca(double)"},{"p":"com.bytebank.modelo","c":"CuentaCorriente","l":"saca(double)"},{"p":"com.bytebank.modelo","c":"SaldoInsuficienteException","l":"SaldoInsuficienteException(String)","url":"%3Cinit%3E(java.lang.String)"},{"p":"com.bytebank.modelo","c":"Cuenta","l":"setAgencia(int)"},{"p":"com.bytebank.modelo","c":"Administrador","l":"setClave(String)","url":"setClave(java.lang.String)"},{"p":"com.bytebank.modelo","c":"Autenticable","l":"setClave(String)","url":"setClave(java.lang.String)"},{"p":"com.bytebank.modelo","c":"AutenticacionUtil","l":"setClave(String)","url":"setClave(java.lang.String)"},{"p":"com.bytebank.modelo","c":"Cliente","l":"setClave(String)","url":"setClave(java.lang.String)"},{"p":"com.bytebank.modelo","c":"Gerente","l":"setClave(String)","url":"setClave(java.lang.String)"},{"p":"com.bytebank.modelo","c":"Cliente","l":"setDocumento(String)","url":"setDocumento(java.lang.String)"},{"p":"com.bytebank.modelo","c":"Funcionario","l":"setDocumento(String)","url":"setDocumento(java.lang.String)"},{"p":"com.bytebank.modelo","c":"Cliente","l":"setNombre(String)","url":"setNombre(java.lang.String)"},{"p":"com.bytebank.modelo","c":"Funcionario","l":"setNombre(String)","url":"setNombre(java.lang.String)"},{"p":"com.bytebank.modelo","c":"Cuenta","l":"setNumero(int)"},{"p":"com.bytebank.modelo","c":"Funcionario","l":"setSalario(double)"},{"p":"com.bytebank.modelo","c":"Cliente","l":"setTelefono(String)","url":"setTelefono(java.lang.String)"},{"p":"com.bytebank.modelo","c":"Funcionario","l":"setTipo(int)"},{"p":"com.bytebank.modelo","c":"Cuenta","l":"setTitular(Cliente)","url":"setTitular(com.bytebank.modelo.Cliente)"},{"p":"com.bytebank.modelo","c":"SistemaInterno","l":"SistemaInterno()","url":"%3Cinit%3E()"},{"p":"com.bytebank.test","c":"TestControlBonificacion","l":"TestControlBonificacion()","url":"%3Cinit%3E()"},{"p":"com.bytebank.test","c":"TestCuenta","l":"TestCuenta()","url":"%3Cinit%3E()"},{"p":"com.bytebank.test","c":"TestCuentaExceptionSaldo","l":"TestCuentaExceptionSaldo()","url":"%3Cinit%3E()"},{"p":"com.bytebank.test","c":"TestFuncionario","l":"TestFuncionario()","url":"%3Cinit%3E()"},{"p":"com.bytebank.test","c":"TestGerente","l":"TestGerente()","url":"%3Cinit%3E()"},{"p":"com.bytebank.test","c":"TestReferencias","l":"TestReferencias()","url":"%3Cinit%3E()"},{"p":"com.bytebank.test","c":"TestSistemaInterno","l":"TestSistemaInterno()","url":"%3Cinit%3E()"},{"p":"com.bytebank.modelo","c":"Cuenta","l":"transfiere(double, Cuenta)","url":"transfiere(double,com.bytebank.modelo.Cuenta)"}] -------------------------------------------------------------------------------- /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 |
107 | 151 |
152 | 153 | 154 | -------------------------------------------------------------------------------- /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 |
109 | 153 |
154 | 155 | 156 | -------------------------------------------------------------------------------- /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 |
111 | 155 |
156 | 157 | 158 | -------------------------------------------------------------------------------- /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 |
123 | 167 |
168 | 169 | 170 | -------------------------------------------------------------------------------- /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 | --------------------------------------------------------------------------------