Package com.linkedin.alpini.base.misc
Interface TypedFieldAccessor<T,V>
-
- Type Parameters:
T
- Containing classV
- Class of contained field
- All Superinterfaces:
java.util.function.BiConsumer<T,V>
,java.util.function.Function<T,V>
- All Known Implementing Classes:
SlowFieldAccessor
public interface TypedFieldAccessor<T,V> extends java.util.function.BiConsumer<T,V>, java.util.function.Function<T,V>
Interface for a generic typed field accessor.
-
-
Method Summary
Static Methods Modifier and Type Method Description static <T,V>
TypedFieldAccessor<T,V>forField(java.lang.Class<? super T> clazz, java.lang.String fieldName)
static <T,V>
TypedFieldAccessor<T,V>forField(java.lang.reflect.Field field)
-
-
-
Method Detail
-
forField
static <T,V> TypedFieldAccessor<T,V> forField(java.lang.Class<? super T> clazz, java.lang.String fieldName)
-
forField
static <T,V> TypedFieldAccessor<T,V> forField(java.lang.reflect.Field field) throws java.lang.NoSuchFieldException, java.lang.IllegalAccessException
- Throws:
java.lang.NoSuchFieldException
java.lang.IllegalAccessException
-
-