com.ochafik.lang
Class SyntaxUtils

java.lang.Object
  extended by com.ochafik.lang.SyntaxUtils

public class SyntaxUtils
extends Object


Nested Class Summary
static class SyntaxUtils.EasyMap<K,V>
           
 
Constructor Summary
SyntaxUtils()
           
 
Method Summary
static
<T> T[]
array(T... elements)
           
static
<T> T
as(Object value, Class<T> c)
           
static
<T> T
convert(Object value, Class<T> c)
           
static
<T> boolean
equal(T a, T b)
           
static Iterable<Node> iterable(NodeList list)
           
static
<K,V> SyntaxUtils.EasyMap<K,V>
map(K key, V value)
           
static
<T> void
registerConverter(Class<T> c, com.ochafik.lang.SyntaxUtils.Converter<T> converter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyntaxUtils

public SyntaxUtils()
Method Detail

array

public static <T> T[] array(T... elements)

equal

public static <T> boolean equal(T a,
                                T b)

as

public static <T> T as(Object value,
                       Class<T> c)

registerConverter

public static <T> void registerConverter(Class<T> c,
                                         com.ochafik.lang.SyntaxUtils.Converter<T> converter)

convert

public static <T> T convert(Object value,
                            Class<T> c)

map

public static <K,V> SyntaxUtils.EasyMap<K,V> map(K key,
                                                 V value)

iterable

public static Iterable<Node> iterable(NodeList list)


Copyright © 2009. All Rights Reserved.