Interface BodyAccessor.BodyProperty<T>

Type Parameters:
T - The type of the body property.
All Superinterfaces:
BodyAccessor<T>, BodyAccessor.BodyMutator<T>
Enclosing interface:
BodyAccessor<T>

public static interface BodyAccessor.BodyProperty<T>
extends BodyAccessor<T>, BodyAccessor.BodyMutator<T>
Provides a body property.
  • Method Details

    • letBody

      default T letBody​(T aBody)
      This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as of BodyAccessor.BodyMutator.setBody(Object) and returns the very same value (getter).
      Parameters:
      aBody - The value to set (via BodyAccessor.BodyMutator.setBody(Object)).
      Returns:
      Returns the value passed for it to be used in conclusive processing steps.