Java Bibliotecas Pincipales: FIN

This commit is contained in:
devfzn 2023-07-23 03:37:27 -04:00
parent 3ecf781a89
commit b7c5d2d508
Signed by: devfzn
GPG Key ID: E070ECF4A754FDB1
14 changed files with 87 additions and 29 deletions

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Fri Jul 21 00:56:31 CLT 2023 -->
<!-- Generated by javadoc (17) on Sun Jul 23 03:36:58 CLT 2023 -->
<title>All Classes and Interfaces</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-21">
<meta name="dc.created" content="2023-07-23">
<meta name="description" content="class index">
<meta name="generator" content="javadoc/AllClassesIndexWriter">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
@ -56,7 +56,7 @@ loadScripts(document, 'script');</script>
<div class="summary-table two-column-summary">
<div class="table-header col-first">Class</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="bytebank/com/bytebank/test/TestSortArrays.html" title="class in com.bytebank.test">TestSortArrays</a></div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="bytebank/com/bytebank/test/TestLambda.html" title="class in com.bytebank.test">TestLambda</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">&nbsp;</div>
</div>
</div>

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Fri Jul 21 00:56:31 CLT 2023 -->
<!-- Generated by javadoc (17) on Sun Jul 23 03:36:58 CLT 2023 -->
<title>All Packages</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-21">
<meta name="dc.created" content="2023-07-23">
<meta name="description" content="package index">
<meta name="generator" content="javadoc/AllPackagesIndexWriter">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Fri Jul 21 00:56:31 CLT 2023 -->
<!-- Generated by javadoc (17) on Sun Jul 23 03:36:58 CLT 2023 -->
<title>bytebank</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-21">
<meta name="dc.created" content="2023-07-23">
<meta name="description" content="declaration: module: bytebank">
<meta name="generator" content="javadoc/ModuleWriterImpl">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Fri Jul 21 00:56:31 CLT 2023 -->
<!-- Generated by javadoc (17) on Sun Jul 23 03:36:58 CLT 2023 -->
<title>API Help</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-21">
<meta name="dc.created" content="2023-07-23">
<meta name="description" content="help">
<meta name="generator" content="javadoc/HelpWriter">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Fri Jul 21 00:56:31 CLT 2023 -->
<!-- Generated by javadoc (17) on Sun Jul 23 03:36:58 CLT 2023 -->
<title>B-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-21">
<meta name="dc.created" content="2023-07-23">
<meta name="description" content="index: B">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Fri Jul 21 00:56:31 CLT 2023 -->
<!-- Generated by javadoc (17) on Sun Jul 23 03:36:58 CLT 2023 -->
<title>C-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-21">
<meta name="dc.created" content="2023-07-23">
<meta name="description" content="index: C">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Fri Jul 21 00:56:31 CLT 2023 -->
<!-- Generated by javadoc (17) on Sun Jul 23 03:36:58 CLT 2023 -->
<title>M-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-21">
<meta name="dc.created" content="2023-07-23">
<meta name="description" content="index: M">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
@ -54,7 +54,7 @@ loadScripts(document, 'script');</script>
<a href="index-1.html">B</a>&nbsp;<a href="index-2.html">C</a>&nbsp;<a href="index-3.html">M</a>&nbsp;<a href="index-4.html">T</a>&nbsp;<br><a href="../allclasses-index.html">All&nbsp;Classes&nbsp;and&nbsp;Interfaces</a><span class="vertical-separator">|</span><a href="../allpackages-index.html">All&nbsp;Packages</a>
<h2 class="title" id="I:M">M</h2>
<dl class="index">
<dt><a href="../bytebank/com/bytebank/test/TestSortArrays.html#main(java.lang.String%5B%5D)" class="member-name-link">main(String[])</a> - Static method in class com.bytebank.test.<a href="../bytebank/com/bytebank/test/TestSortArrays.html" title="class in com.bytebank.test">TestSortArrays</a></dt>
<dt><a href="../bytebank/com/bytebank/test/TestLambda.html#main(java.lang.String%5B%5D)" class="member-name-link">main(String[])</a> - Static method in class com.bytebank.test.<a href="../bytebank/com/bytebank/test/TestLambda.html" title="class in com.bytebank.test">TestLambda</a></dt>
<dd>&nbsp;</dd>
</dl>
<a href="index-1.html">B</a>&nbsp;<a href="index-2.html">C</a>&nbsp;<a href="index-3.html">M</a>&nbsp;<a href="index-4.html">T</a>&nbsp;<br><a href="../allclasses-index.html">All&nbsp;Classes&nbsp;and&nbsp;Interfaces</a><span class="vertical-separator">|</span><a href="../allpackages-index.html">All&nbsp;Packages</a></main>

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Fri Jul 21 00:56:31 CLT 2023 -->
<!-- Generated by javadoc (17) on Sun Jul 23 03:36:58 CLT 2023 -->
<title>T-Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-21">
<meta name="dc.created" content="2023-07-23">
<meta name="description" content="index: T">
<meta name="generator" content="javadoc/IndexWriter">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
@ -54,9 +54,9 @@ loadScripts(document, 'script');</script>
<a href="index-1.html">B</a>&nbsp;<a href="index-2.html">C</a>&nbsp;<a href="index-3.html">M</a>&nbsp;<a href="index-4.html">T</a>&nbsp;<br><a href="../allclasses-index.html">All&nbsp;Classes&nbsp;and&nbsp;Interfaces</a><span class="vertical-separator">|</span><a href="../allpackages-index.html">All&nbsp;Packages</a>
<h2 class="title" id="I:T">T</h2>
<dl class="index">
<dt><a href="../bytebank/com/bytebank/test/TestSortArrays.html" class="type-name-link" title="class in com.bytebank.test">TestSortArrays</a> - Class in <a href="../bytebank/com/bytebank/test/package-summary.html">com.bytebank.test</a></dt>
<dt><a href="../bytebank/com/bytebank/test/TestLambda.html" class="type-name-link" title="class in com.bytebank.test">TestLambda</a> - Class in <a href="../bytebank/com/bytebank/test/package-summary.html">com.bytebank.test</a></dt>
<dd>&nbsp;</dd>
<dt><a href="../bytebank/com/bytebank/test/TestSortArrays.html#%3Cinit%3E()" class="member-name-link">TestSortArrays()</a> - Constructor for class com.bytebank.test.<a href="../bytebank/com/bytebank/test/TestSortArrays.html" title="class in com.bytebank.test">TestSortArrays</a></dt>
<dt><a href="../bytebank/com/bytebank/test/TestLambda.html#%3Cinit%3E()" class="member-name-link">TestLambda()</a> - Constructor for class com.bytebank.test.<a href="../bytebank/com/bytebank/test/TestLambda.html" title="class in com.bytebank.test">TestLambda</a></dt>
<dd>&nbsp;</dd>
</dl>
<a href="index-1.html">B</a>&nbsp;<a href="index-2.html">C</a>&nbsp;<a href="index-3.html">M</a>&nbsp;<a href="index-4.html">T</a>&nbsp;<br><a href="../allclasses-index.html">All&nbsp;Classes&nbsp;and&nbsp;Interfaces</a><span class="vertical-separator">|</span><a href="../allpackages-index.html">All&nbsp;Packages</a></main>

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Fri Jul 21 00:56:31 CLT 2023 -->
<!-- Generated by javadoc (17) on Sun Jul 23 03:36:58 CLT 2023 -->
<title>Generated Documentation (Untitled)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-21">
<meta name="dc.created" content="2023-07-23">
<meta name="description" content="index redirect">
<meta name="generator" content="javadoc/IndexRedirectWriter">
<link rel="canonical" href="bytebank/module-summary.html">

View File

@ -1 +1 @@
memberSearchIndex = [{"p":"com.bytebank.test","c":"TestSortArrays","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"com.bytebank.test","c":"TestSortArrays","l":"TestSortArrays()","u":"%3Cinit%3E()"}];updateSearchResults();
memberSearchIndex = [{"p":"com.bytebank.test","c":"TestLambda","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"com.bytebank.test","c":"TestLambda","l":"TestLambda()","u":"%3Cinit%3E()"}];updateSearchResults();

View File

@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Fri Jul 21 00:56:31 CLT 2023 -->
<!-- Generated by javadoc (17) on Sun Jul 23 03:36:58 CLT 2023 -->
<title>Class Hierarchy</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2023-07-21">
<meta name="dc.created" content="2023-07-23">
<meta name="description" content="class tree">
<meta name="generator" content="javadoc/TreeWriter">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
@ -60,7 +60,7 @@ loadScripts(document, 'script');</script>
<ul>
<li class="circle">java.lang.<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" class="type-name-link external-link" title="class or interface in java.lang">Object</a>
<ul>
<li class="circle">com.bytebank.test.<a href="bytebank/com/bytebank/test/TestSortArrays.html" class="type-name-link" title="class in com.bytebank.test">TestSortArrays</a></li>
<li class="circle">com.bytebank.test.<a href="bytebank/com/bytebank/test/TestLambda.html" class="type-name-link" title="class in com.bytebank.test">TestLambda</a></li>
</ul>
</li>
</ul>

View File

@ -1 +1 @@
typeSearchIndex = [{"l":"All Classes and Interfaces","u":"allclasses-index.html"},{"p":"com.bytebank.test","l":"TestSortArrays"}];updateSearchResults();
typeSearchIndex = [{"l":"All Classes and Interfaces","u":"allclasses-index.html"},{"p":"com.bytebank.test","l":"TestLambda"}];updateSearchResults();

View File

@ -256,7 +256,7 @@ public interface Autenticable {
```
Utilización de clase **utilitaria**
[Autenticable](./eclipse/bytebank_heredado/src/bytebank_heredado/AutenticacionUtil.java)
[AutenticacionUtil](./eclipse/bytebank_heredado/src/bytebank_heredado/AutenticacionUtil.java)
```java
public class AutenticacionUtil {

View File

@ -866,6 +866,64 @@ Sumario
con colecciones, principalmente listas
## Clase anonima y lambda
## Clase anónima y lambda
### Clase anónima
Implementación de clase anónima al ordenar lista,
[TestOrdenLista.java](./bibliotecas/bytebank/src/com/bytebank/test/TestOrdenLista.java)
```java
lista.sort(new Comparator<Cuenta>() {
@Override
public int compare(Cuenta o1, Cuenta o2) {
return (Integer.compare(o1.getNumero(), o2.getNumero()));
}
});
```
```java
Collections.sort(lista, new Comparator<Cuenta>() {
@Override
public int compare(Cuenta o1, Cuenta o2) {
return o1.getTitular().getNombre().compareTo(o2.getTitular().getNombre());
}
});
```
Estas clases son creadas por Java, se pueden ver los archivos compilados como
`TestOrdenLista$1.class` y `TestOrdenLista$2.class`
### Lambda
Las funciones lambdas provienen de la programación funcional y corresponden
con funciones de Java que normalmente son anónimas y "se escriben en una línea"
donde se usan. Como cualquier función puede recibir argumentos y devuelven
uno o ningún valor de retorno.
```java
public class TestLambda {
...
// Lambda
lista.sort((Cuenta o1, Cuenta o2) ->
Integer.compare(o1.getNumero(), o2.getNumero())
);
System.out.println("Despues de ordenar por nro. de cta.");
for (Cuenta cuenta : lista) {
System.out.println(cuenta);
}
Collections.sort(lista, (c1, c2) ->
c1.getTitular().getNombre().compareTo(c2.getTitular().getNombre())
);
System.out.println("Despues de ordenar por nombre:");
lista.forEach(cuenta -> System.out.println(cuenta));
}
}
}
```
- [Lectura - interface funcional](https://www.arquitecturajava.com/java-8-functional-interfaces-y-sus-tipos/)