Class SlowFieldAccessor<T,​V>

  • Type Parameters:
    T - Containing class
    V - Class of contained field
    All Implemented Interfaces:
    TypedFieldAccessor<T,​V>, java.util.function.BiConsumer<T,​V>, java.util.function.Function<T,​V>

    public abstract class SlowFieldAccessor<T,​V>
    extends java.lang.Object
    implements TypedFieldAccessor<T,​V>
    Field accessor using Reflection. This is slow but does not use the faster Unsafe mechanism which is no longer permitted in Java.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T,​V>
      SlowFieldAccessor<T,​V>
      forField​(java.lang.reflect.Field field)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.BiConsumer

        accept, andThen
      • Methods inherited from interface java.util.function.Function

        andThen, apply, compose
    • Constructor Detail

      • SlowFieldAccessor

        public SlowFieldAccessor()
    • Method Detail

      • forField

        public static <T,​V> SlowFieldAccessor<T,​V> forField​(java.lang.reflect.Field field)