Java Bibliotecas Pincipales: FIN
This commit is contained in:
parent
3ecf781a89
commit
b7c5d2d508
@ -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"> </div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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> <a href="index-2.html">C</a> <a href="index-3.html">M</a> <a href="index-4.html">T</a> <br><a href="../allclasses-index.html">All Classes and Interfaces</a><span class="vertical-separator">|</span><a href="../allpackages-index.html">All 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> </dd>
|
||||
</dl>
|
||||
<a href="index-1.html">B</a> <a href="index-2.html">C</a> <a href="index-3.html">M</a> <a href="index-4.html">T</a> <br><a href="../allclasses-index.html">All Classes and Interfaces</a><span class="vertical-separator">|</span><a href="../allpackages-index.html">All Packages</a></main>
|
||||
|
@ -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> <a href="index-2.html">C</a> <a href="index-3.html">M</a> <a href="index-4.html">T</a> <br><a href="../allclasses-index.html">All Classes and Interfaces</a><span class="vertical-separator">|</span><a href="../allpackages-index.html">All 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> </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> </dd>
|
||||
</dl>
|
||||
<a href="index-1.html">B</a> <a href="index-2.html">C</a> <a href="index-3.html">M</a> <a href="index-4.html">T</a> <br><a href="../allclasses-index.html">All Classes and Interfaces</a><span class="vertical-separator">|</span><a href="../allpackages-index.html">All Packages</a></main>
|
||||
|
@ -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">
|
||||
|
@ -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();
|
@ -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>
|
||||
|
@ -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();
|
@ -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 {
|
||||
|
@ -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/)
|
||||
|
Loading…
Reference in New Issue
Block a user