public static final class UnsafeField.Builder
extends java.lang.Object
UnsafeField builder static inner class.| 限定符和类型 | 方法和说明 |
|---|---|
UnsafeField |
build()
Returns a
UnsafeField built from the parameters previously set. |
UnsafeField.Builder |
field(java.lang.reflect.Field field)
Sets the
field and returns a reference to this Builder so that the methods can be chained together. |
UnsafeField.Builder |
offset(long offset)
Sets the
offset and returns a reference to this Builder so that the methods can be chained together. |
UnsafeField.Builder |
type(java.lang.Class type)
Sets the
type and returns a reference to this Builder so that the methods can be chained together. |
public UnsafeField.Builder offset(long offset)
offset and returns a reference to this Builder so that the methods can be chained together.offset - the offset to setpublic UnsafeField.Builder field(java.lang.reflect.Field field)
field and returns a reference to this Builder so that the methods can be chained together.field - the field to setpublic UnsafeField.Builder type(java.lang.Class type)
type and returns a reference to this Builder so that the methods can be chained together.type - the type to setpublic UnsafeField build()
UnsafeField built from the parameters previously set.UnsafeField built with parameters of this UnsafeField.Builder