Package org.evrete.api
Class TypeWrapper<T>
java.lang.Object
org.evrete.api.TypeWrapper<T>
public class TypeWrapper<T> extends Object implements Type<T>
-
Constructor Summary
Constructors Constructor Description TypeWrapper(Type<T> delegate) -
Method Summary
Modifier and Type Method Description Type<T>copyOf()TypeFielddeclareField(String name, Class<?> type, Function<T,Object> function)Field declaration with aFunctionas value reader.booleanequals(Object o)Collection<TypeField>getDeclaredFields()Type<T>getDelegate()TypeFieldgetField(String name)Returns a declared field with the given name, or null if no such field is found or resolvedClass<T>getJavaType()StringgetName()inthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.evrete.api.Type
declareField, declareField, declareField, declareField
-
Constructor Details
-
Method Details
-
getDelegate
-
getJavaType
- Specified by:
getJavaTypein interfaceType<T>
-
getName
-
getDeclaredFields
- Specified by:
getDeclaredFieldsin interfaceType<T>
-
getField
Description copied from interface:TypeReturns a declared field with the given name, or null if no such field is found or resolved
-
declareField
Description copied from interface:TypeField declaration with a
Functionas value reader.- Specified by:
declareFieldin interfaceType<T>- Parameters:
name- field nametype- field value typefunction- the function that will be used to read field's value- Returns:
- newly created field
-
copyOf
-
equals
-
hashCode
public final int hashCode()
-