org.jvnet.hyperjaxb3.item
Class ItemUtils

java.lang.Object
  extended by org.jvnet.hyperjaxb3.item.ItemUtils

public class ItemUtils
extends Object


Constructor Summary
ItemUtils()
           
 
Method Summary
static
<T,ItemType extends Item<T>>
ItemType
create(Class<? extends ItemType> itemClass, T value)
           
static
<T> boolean
shouldBeWrapped(List<T> core)
           
static
<T,ItemType extends Item<T>>
List<T>
wrap(List<T> core, List<ItemType> items, Class<? extends ItemType> itemClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemUtils

public ItemUtils()
Method Detail

create

public static <T,ItemType extends Item<T>> ItemType create(Class<? extends ItemType> itemClass,
                                                           T value)

shouldBeWrapped

public static <T> boolean shouldBeWrapped(List<T> core)

wrap

public static <T,ItemType extends Item<T>> List<T> wrap(List<T> core,
                                                        List<ItemType> items,
                                                        Class<? extends ItemType> itemClass)


Copyright © 2005-2011. All Rights Reserved.