Interface FieldValueProvider

    • Method Detail

      • __fieldValueProvider__get

        java.lang.Object __fieldValueProvider__get​(java.lang.String fieldName)
        Returns the value of a given field.
        Parameters:
        fieldName - the field name.
        Returns:
        the field value.
      • get

        static java.lang.Object get​(java.lang.Object object,
                                    java.lang.String fieldName)

        Returns the value of a given field in a given object if it belongs to a class that implements FieldValueProvider. Otherwise, it throws an exception.

        This is an utility method to avoid having to make casts very time you need to call __fieldValueProvider__get(String).

        Parameters:
        object - an object.
        fieldName - the field name.
        Returns:
        the field value.