Package org.springframework.data.util
Class MethodInvocationRecorder.Recorded<T>
java.lang.Object
org.springframework.data.util.MethodInvocationRecorder.Recorded<T>
- Enclosing class:
- MethodInvocationRecorder
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionApplies the given Converter to the recorded value and remembers the property accessed.record
(MethodInvocationRecorder.Recorded.ToCollectionConverter<T, S> converter) Record the method invocation traversing to a collection property.record
(MethodInvocationRecorder.Recorded.ToMapConverter<T, S> converter) Record the method invocation traversing to a map property.toString()
-
Method Details
-
getPropertyPath
-
getPropertyPath
public Optional<String> getPropertyPath(MethodInvocationRecorder.PropertyNameDetectionStrategy strategy) -
getPropertyPath
public Optional<String> getPropertyPath(List<MethodInvocationRecorder.PropertyNameDetectionStrategy> strategies) -
record
Applies the given Converter to the recorded value and remembers the property accessed.- Parameters:
converter
- must not be null.- Returns:
-
record
public <S> MethodInvocationRecorder.Recorded<S> record(MethodInvocationRecorder.Recorded.ToCollectionConverter<T, S> converter) Record the method invocation traversing to a collection property.- Parameters:
converter
- must not be null.- Returns:
-
record
public <S> MethodInvocationRecorder.Recorded<S> record(MethodInvocationRecorder.Recorded.ToMapConverter<T, S> converter) Record the method invocation traversing to a map property.- Parameters:
converter
- must not be null.- Returns:
-
toString
-