Interface AttributeSetter<T,V>

Type Parameters:
T - the type of the target object
V - the type of the value to be set
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface AttributeSetter<T,V>
Functional interface representing an operation that sets a value to a target object.
Author:
Sergey Grachev
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    set(T target, V value)
    Sets the specified value to the given target object.
  • Method Details

    • set

      void set(T target, V value) throws Exception
      Sets the specified value to the given target object.
      Parameters:
      target - the target object to which the value is to be set
      value - the value to set on the target object
      Throws:
      Exception - if an error occurs during setting of the value