Package org.apache.iceberg.common
Class DynFields.UnboundField<T>
java.lang.Object
org.apache.iceberg.common.DynFields.UnboundField<T>
- Enclosing class:
DynFields
Convenience wrapper class around
Field
.
Allows callers to invoke the wrapped method with all Exceptions wrapped by RuntimeException, or with a single Exception catch block.
-
Method Details
-
get
-
set
-
toString
-
bind
Returns this method as a BoundMethod for the given receiver.- Parameters:
target
- an Object on which to get or set this field- Returns:
- a
DynFields.BoundField
for this field and the target - Throws:
IllegalStateException
- if the method is staticIllegalArgumentException
- if the receiver's class is incompatible
-
asStatic
Returns this field as a StaticField.- Returns:
- a
DynFields.StaticField
for this field - Throws:
IllegalStateException
- if the method is not static
-
isStatic
public boolean isStatic()Returns whether the field is a static field. -
isAlwaysNull
public boolean isAlwaysNull()Returns whether the field is always null.
-