Interface UnsafeBeanWriteProperty<B,T>

Type Parameters:
B - The bean type
T - The bean property type
All Superinterfaces:
AnnotatedElement, AnnotationMetadata, AnnotationMetadataDelegate, AnnotationMetadataProvider, AnnotationSource, ArgumentCoercible<T>, BeanWriteProperty<B,T>, Named
All Known Subinterfaces:
UnsafeBeanProperty<B,T>
All Known Implementing Classes:
AbstractBeanProperty

public interface UnsafeBeanWriteProperty<B,T> extends BeanWriteProperty<B,T>
Unsafe bean property interface adds write methods which don't validate the input/output. It's the responsibility of the caller to validate the value.
Since:
4.4.0
Author:
Denis Stepanov
  • Method Details

    • withValueUnsafe

      @NonNull B withValueUnsafe(@NonNull B bean, @Nullable T value)
      Parameters:
      bean - The bean
      value - The new value
      Returns:
      Either the existing instance or the property is mutable or a newly created instance via the copy constructor pattern.
    • setUnsafe

      void setUnsafe(@NonNull B bean, @Nullable T value)
      Parameters:
      bean - The bean
      value - The value to write