org.stjs.javascript
Class JSCollections

java.lang.Object
  extended by org.stjs.javascript.JSCollections

public class JSCollections
extends Object

this class offers map and array builders for both client and server side. For the server side, it delegates the execution to an instance of JSCollectionsImplementor. On the client side, it simply throws an UnsupportedOperationException like all the client-side bridges.

Author:
acraciun

Constructor Summary
JSCollections()
           
 
Method Summary
static
<V> Array<V>
$array(V... values)
           
static
<T> Array<T>
$castArray(T[] a)
           
static
<K extends String,V>
Map<K,V>
$map()
           
static
<K extends String,V>
Map<K,V>
$map(K k1, V v1)
           
static
<K extends String,V>
Map<K,V>
$map(K k1, V v1, K k2, V v2)
           
static
<K extends String,V>
Map<K,V>
$map(K k1, V v1, K k2, V v2, K k3, V v3)
           
static
<K extends String,V>
Map<K,V>
$map(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4)
           
static
<K extends String,V>
Map<K,V>
$map(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5)
           
static
<K extends String,V>
Map<K,V>
$map(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, Object... morePairs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSCollections

public JSCollections()
Method Detail

$array

public static <V> Array<V> $array(V... values)

$castArray

public static <T> Array<T> $castArray(T[] a)

$map

public static <K extends String,V> Map<K,V> $map()

$map

public static <K extends String,V> Map<K,V> $map(K k1,
                                                 V v1)

$map

public static <K extends String,V> Map<K,V> $map(K k1,
                                                 V v1,
                                                 K k2,
                                                 V v2)

$map

public static <K extends String,V> Map<K,V> $map(K k1,
                                                 V v1,
                                                 K k2,
                                                 V v2,
                                                 K k3,
                                                 V v3)

$map

public static <K extends String,V> Map<K,V> $map(K k1,
                                                 V v1,
                                                 K k2,
                                                 V v2,
                                                 K k3,
                                                 V v3,
                                                 K k4,
                                                 V v4)

$map

public static <K extends String,V> Map<K,V> $map(K k1,
                                                 V v1,
                                                 K k2,
                                                 V v2,
                                                 K k3,
                                                 V v3,
                                                 K k4,
                                                 V v4,
                                                 K k5,
                                                 V v5)

$map

public static <K extends String,V> Map<K,V> $map(K k1,
                                                 V v1,
                                                 K k2,
                                                 V v2,
                                                 K k3,
                                                 V v3,
                                                 K k4,
                                                 V v4,
                                                 K k5,
                                                 V v5,
                                                 K k6,
                                                 Object... morePairs)


Copyright © 2012. All Rights Reserved.