Class Accessor

  • Direct Known Subclasses:
    ReflectAccessor, UnsafeAccessor

    public abstract class Accessor
    extends java.lang.Object
    Used for (speeding up deser on) repeated/collection fields.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  Accessor.Factory  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.reflect.Field f  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Accessor​(java.lang.reflect.Field f)  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract <T> T get​(java.lang.Object owner)
      Get the field value.
      abstract void set​(java.lang.Object owner, java.lang.Object value)
      Set the field value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • f

        public final java.lang.reflect.Field f
    • Constructor Detail

      • Accessor

        protected Accessor​(java.lang.reflect.Field f)
    • Method Detail

      • set

        public abstract void set​(java.lang.Object owner,
                                 java.lang.Object value)
        Set the field value.
      • get

        public abstract <T> T get​(java.lang.Object owner)
        Get the field value.