Class FieldGetter

java.lang.Object
me.ahoo.cosid.accessor.field.FieldGetter
All Implemented Interfaces:
CosIdGetter

public class FieldGetter extends Object implements CosIdGetter
ID getter that accesses field directly.
  • Constructor Details

    • FieldGetter

      public FieldGetter(Field idField)
      Creates a getter for the specified field.
      Parameters:
      idField - the field to access
  • Method Details

    • getId

      public Object getId(Object target)
      Description copied from interface: CosIdGetter
      Gets the ID value from the target object.
      Specified by:
      getId in interface CosIdGetter
      Parameters:
      target - the object to get ID from
      Returns:
      the ID value