Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Guava has <a href="http://guava-libraries.googlecode.com/svn-history/r13/trunk/javadoc/com/google/common/collect/Lists.html#transform%28java.util.List,%20com.google.common.base.Function%29" rel="nofollow noreferrer"><code>Lists.transform</code></a> that can transform a <code>List&lt;F&gt;</code> to a <code>List&lt;T&gt;</code>, using a provided <a href="http://guava-libraries.googlecode.com/svn-history/r13/trunk/javadoc/com/google/common/base/Function.html" rel="nofollow noreferrer"><code>Function&lt;F,T&gt;</code></a> (or rather, <code>Function&lt;? super F,? extends T&gt;</code>).</p> <p>From the documentation:</p> <blockquote> <pre><code>public static &lt;F,T&gt; List&lt;T&gt; transform( List&lt;F&gt; fromList, Function&lt;? super F,? extends T&gt; function ) </code></pre> <p>Returns a list that applies <code>function</code> to each element of <code>fromList</code>. The returned list is a transformed view of <code>fromList</code>; changes to <code>fromList</code> will be reflected in the returned list and vice versa.</p> <p>The <code>function</code> is applied lazily, invoked when needed.</p> </blockquote> <p>Similar live-view transforms are also provided as follows:</p> <ul> <li><a href="http://guava-libraries.googlecode.com/svn-history/r13/trunk/javadoc/com/google/common/collect/Iterables.html#transform%28java.lang.Iterable,%20com.google.common.base.Function%29" rel="nofollow noreferrer"><code>Iterables.transform</code></a> (<code>Iterable&lt;F&gt;</code> to <code>Iterable&lt;T&gt;</code>)</li> <li><a href="http://guava-libraries.googlecode.com/svn-history/r13/trunk/javadoc/com/google/common/collect/Iterators.html#transform%28java.util.Iterator,%20com.google.common.base.Function%29" rel="nofollow noreferrer"><code>Iterators.transform</code></a> (<code>Iterator&lt;F&gt;</code> to <code>Iterator&lt;T&gt;</code>)</li> <li><a href="http://guava-libraries.googlecode.com/svn-history/r13/trunk/javadoc/com/google/common/collect/Collections2.html#transform%28java.util.Collection,%20com.google.common.base.Function%29" rel="nofollow noreferrer"><code>Collections2.transform</code></a> (<code>Collection&lt;F&gt;</code> to <code>Collection&lt;T&gt;</code>)</li> <li><a href="http://guava-libraries.googlecode.com/svn-history/r13/trunk/javadoc/com/google/common/collect/Maps.html#transformValues%28java.util.Map,%20com.google.common.base.Function%29" rel="nofollow noreferrer"><code>Maps.transformValues</code></a> (<code>Map&lt;K,V1&gt;</code> to <code>Map&lt;K,V2&gt;</code>)</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload