Package com.exedio.cope
Class TypesBound
- java.lang.Object
-
- com.exedio.cope.TypesBound
-
public final class TypesBound extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T extends Item>
Type<T>forClass(Class<T> javaClass)
static Type<?>
forClassUnchecked(Class<? extends Item> javaClass)
static SortedMap<Feature,Field>
getFeatures(Class<?> clazz)
static <E extends Item>
ItemField<E>newItemField(Class<E> valueClass)
Deprecated.UseItemField.create(Class)
insteadstatic <E extends Item>
ItemField<E>newItemField(Class<E> valueClass, ItemField.DeletePolicy policy)
Deprecated.UseItemField.create(Class, DeletePolicy)
insteadstatic <T extends Item>
Type<T>newType(Class<T> javaClass)
-
-
-
Method Detail
-
forClass
public static <T extends Item> Type<T> forClass(Class<T> javaClass)
- Throws:
IllegalArgumentException
- if there is no type for the given java class.- See Also:
Type.isBound()
-
forClassUnchecked
public static Type<?> forClassUnchecked(Class<? extends Item> javaClass)
- Throws:
IllegalArgumentException
- if there is no type for the given java class.- See Also:
Type.isBound()
-
newItemField
@Deprecated public static <E extends Item> ItemField<E> newItemField(Class<E> valueClass)
Deprecated.UseItemField.create(Class)
instead
-
newItemField
@Deprecated public static <E extends Item> ItemField<E> newItemField(Class<E> valueClass, ItemField.DeletePolicy policy)
Deprecated.UseItemField.create(Class, DeletePolicy)
instead
-
-