intarsys runtime library

de.intarsys.tools.collection
Class ListTools

java.lang.Object
  extended by de.intarsys.tools.collection.ListTools

public class ListTools
extends Object


Method Summary
static
<T> List<T>
collect(Iterator<T> it)
           
static
<T> T
first(List<T> list)
           
static
<T> T
last(List<T> list)
           
static
<T> List<T>
with(T object)
           
static
<T> List<T>
with(T object1, T object2)
           
static
<T> List<T>
with(T object1, T object2, T object3)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

collect

public static <T> List<T> collect(Iterator<T> it)

first

public static <T> T first(List<T> list)

last

public static <T> T last(List<T> list)

with

public static <T> List<T> with(T object)

with

public static <T> List<T> with(T object1,
                               T object2)

with

public static <T> List<T> with(T object1,
                               T object2,
                               T object3)

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.