tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aritz Maeztu <amae...@tesicnor.com>
Subject EL Stream API differing from Java's one
Date Wed, 24 Aug 2016 06:44:33 GMT
I've already posted the issue in StackOverflow: 
http://stackoverflow.com/questions/39096941/does-tomcats-el-stream-api-make-sense

Using Tomcat 8.0.30, I've implemented some EL accesses to the stream 
API. However, I've found that this expression:

|#{testBean.values.stream().anyMatch(str ->str == 'Test1')} Returns a ||org.apache.el.stream.Optional
type. Looking at the API documentation it 
also says that. However, in the standard Java Stream API this kind of 
method returns a boolean, which is the result of evaluating the 
Predicate and see if any object in the stream matches it.|


-- 
Aritz Maeztu Otaño
Departamento Desarrollo de Software 
<https://www.linkedin.com/in/aritz-maeztu-ota%C3%B1o-65891942>
<http://www.tesicnor.com> 	

Pol. Ind. Mocholi. C/Rio Elorz, Nave 13E 31110 Noain (Navarra)
Telf. Aritz Maeztu: 948 68 03 06
Telf. Secretaría: 948 21 40 40

Antes de imprimir este e-mail piense bien si es necesario hacerlo: El 
medioambiente es cosa de todos.


Mime
View raw message