org.chromattic.common
Class Collections

java.lang.Object
  extended by org.chromattic.common.Collections

public class Collections
extends Object

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
Collections()
           
 
Method Summary
static
<E> List<E>
list(E... elements)
           
static
<E> List<E>
list(Iterator<E> i)
           
static
<K,V> V
putIfAbsent(ConcurrentMap<K,V> map, K key, V value)
           
static
<E> HashSet<E>
set(E... es)
           
static
<E> HashSet<E>
set(Iterable<E> i)
           
static
<E> HashSet<E>
set(Iterator<E> i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Collections

public Collections()
Method Detail

putIfAbsent

public static <K,V> V putIfAbsent(ConcurrentMap<K,V> map,
                                  K key,
                                  V value)

list

public static <E> List<E> list(Iterator<E> i)

list

public static <E> List<E> list(E... elements)

set

public static <E> HashSet<E> set(Iterator<E> i)

set

public static <E> HashSet<E> set(Iterable<E> i)

set

public static <E> HashSet<E> set(E... es)


Copyright © 2010 eXo Platform SAS. All Rights Reserved.