| Constructor and Description |
|---|
TypeWrapper(Type<T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
Type<T> |
copyOf() |
<V> TypeField |
declareField(String name,
Class<V> type,
Function<T,V> function)
Field declaration with a
Function as value reader. |
boolean |
equals(Object o) |
Collection<TypeField> |
getDeclaredFields()
Method returns ALL known fields, both explicitly declared and resolved.
|
Type<T> |
getDelegate() |
TypeField |
getField(int id)
Returns a declared field with the given name, or null
if no such field is found or resolved
|
TypeField |
getField(String name)
Returns a declared field with the given name, or null
if no such field is found or resolved
|
int |
getId()
Each type is assigned a unique auto-increment int identifier which developers can use in SPI implementations,
for example in sharding/partitioning data collections.
|
Class<T> |
getJavaType()
There can be only one Type with the given name, but there could be
many types associated with a specific Java Class.
|
String |
getName() |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdeclareBooleanField, declareDoubleField, declareIntField, declareLongFieldpublic final int getId()
TypeEach type is assigned a unique auto-increment int identifier which developers can use in SPI implementations, for example in sharding/partitioning data collections.
public final Class<T> getJavaType()
TypeThere can be only one Type with the given name, but there could be many types associated with a specific Java Class. This method returns the associated Java type.
getJavaType in interface Type<T>public Collection<TypeField> getDeclaredFields()
TypeMethod returns ALL known fields, both explicitly declared and resolved.
getDeclaredFields in interface Type<T>TypeFieldpublic TypeField getField(String name)
TypeReturns a declared field with the given name, or null if no such field is found or resolved
public <V> TypeField declareField(String name, Class<V> type, Function<T,V> function)
Type
Field declaration with a Function as value reader.
declareField in interface Type<T>V - field value generic typename - field nametype - field value classfunction - the function that will be used to read field's valuepublic TypeField getField(int id)
TypeReturns a declared field with the given name, or null if no such field is found or resolved
Copyright © 2021. All rights reserved.