/usr/share/doc/libognl-java/LanguageGuide/coerceCollection.html is in libognl-java-doc 2.7.3-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 | <html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Interpreting Objects as Collections</title><link href="../docbook.css" type="text/css" rel="stylesheet"><meta content="DocBook XSL Stylesheets V1.78.1" name="generator"><link rel="home" href="index.html" title="OGNL Language Guide"><link rel="up" href="coercion.html" title="Chapter 5. Coercing Objects to Types"><link rel="prev" href="coerceInteger.html" title="Interpreting Objects as Integers"><link rel="next" href="apa.html" title="Appendix A. OGNL Language Reference"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Interpreting Objects as Collections</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="coerceInteger.html"><img src="../images/navigation/prev.gif" alt="Prev"></a> </td><th align="center" width="60%">Chapter 5. Coercing Objects to Types</th><td align="right" width="20%"> <a accesskey="n" href="apa.html"><img src="../images/navigation/next.gif" alt="Next"></a></td></tr></table><hr></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="coerceCollection"></a>Interpreting Objects as Collections</h2></div></div></div><p>The projection and selection operators (<code class="function">e1.{e2}</code> and <code class="function">e1.{?e2}</code>), and the <code class="function">in</code> operator, all treat one of their arguments as a collection and walk it. This is done
differently depending on the class of the argument:</p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p>Java arrays are walked from front to back</p></li><li class="listitem"><p>Members of <code class="classname">java.util.Collection</code> are walked by walking their iterators</p></li><li class="listitem"><p>Members of <code class="classname">java.util.Map</code> are walked by walking iterators over their values</p></li><li class="listitem"><p>Members of <code class="classname">java.util.Iterator</code> and <code class="classname">java.util.Enumeration</code> are walked by iterating them</p></li><li class="listitem"><p>Members of <code class="classname">java.lang.Number</code> are "walked" by returning integers less than the given number starting with zero</p></li><li class="listitem"><p>All other objects are treated as singleton collections containing only themselves</p></li></ul></div></div><div class="navfooter"><hr><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="coerceInteger.html"><img src="../images/navigation/prev.gif" alt="Prev"></a> </td><td align="center" width="20%"><a accesskey="u" href="coercion.html"><img src="../images/navigation/up.gif" alt="Up"></a></td><td align="right" width="40%"> <a accesskey="n" href="apa.html"><img src="../images/navigation/next.gif" alt="Next"></a></td></tr><tr><td valign="top" align="left" width="40%">Interpreting Objects as Integers </td><td align="center" width="20%"><a accesskey="h" href="index.html"><img src="../images/navigation/home.gif" alt="Home"></a></td><td valign="top" align="right" width="40%"> Appendix A. <acronym class="acronym">OGNL</acronym> Language Reference</td></tr></table></div></body></html>
|