Class PojoField

java.lang.Object
tech.ydb.yoj.databind.schema.reflect.ReflectFieldBase
tech.ydb.yoj.databind.schema.reflect.PojoField
All Implemented Interfaces:
ReflectField

public final class PojoField extends ReflectFieldBase
Represents a field of a POJO class, hand-written or generated e.g. by Lombok.
  • Constructor Details

    • PojoField

      public PojoField(@NonNull @NonNull Reflector reflector, @NonNull Field delegate)
  • Method Details

    • getValue

      @Nullable public Object getValue(Object containingObject)
      Parameters:
      containingObject - object which contains this field
      Returns:
      value of this field for containingObject; might be null.
      This method will throw when invoked on a containingObject that is not instanceof getType().
    • toString

      public String toString()
      Overrides:
      toString in class Object