Interface PropertyChangeHandler.PropertyChangeEvent

Enclosing interface:
PropertyChangeHandler

public static interface PropertyChangeHandler.PropertyChangeEvent
The property change event.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the property name.
    Gets the new value.
    default <T> T
    getValue(Class<T> type)
    Gets the new value as an instance of the given class.
    default <T> T
    getValue(tools.jackson.core.type.TypeReference<T> typeRef)
    Gets the new value as an instance of the given type reference.
  • Method Details

    • getPropertyName

      String getPropertyName()
      Gets the property name.
      Returns:
      the property name, not null
    • getValue

      Object getValue()
      Gets the new value.
      Returns:
      the value, not null
    • getValue

      default <T> T getValue(Class<T> type)
      Gets the new value as an instance of the given class.
      Type Parameters:
      T - the type of the value from type parameter, e.g. String
      Parameters:
      type - the expected type of the returned instance
      Returns:
      throws an UnsupportedOperationException
    • getValue

      default <T> T getValue(tools.jackson.core.type.TypeReference<T> typeRef)
      Gets the new value as an instance of the given type reference.
      Type Parameters:
      T - the type reference of the value from typeRef parameter, e.g. List>
      Parameters:
      typeRef - the expected type reference of the returned instance
      Returns:
      throws an UnsupportedOperationException