public static class MethodInvocationRecorder.Recorded<T> extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
MethodInvocationRecorder.Recorded.ToCollectionConverter<T,S> |
static interface |
MethodInvocationRecorder.Recorded.ToMapConverter<T,S> |
Constructor and Description |
---|
Recorded(T currentInstance,
MethodInvocationRecorder recorder) |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getPropertyPath() |
Optional<String> |
getPropertyPath(List<MethodInvocationRecorder.PropertyNameDetectionStrategy> strategies) |
Optional<String> |
getPropertyPath(MethodInvocationRecorder.PropertyNameDetectionStrategy strategy) |
<S> MethodInvocationRecorder.Recorded<S> |
record(Function<? super T,S> converter)
Applies the given Converter to the recorded value and remembers the property accessed.
|
<S> MethodInvocationRecorder.Recorded<S> |
record(MethodInvocationRecorder.Recorded.ToCollectionConverter<T,S> converter)
Record the method invocation traversing to a collection property.
|
<S> MethodInvocationRecorder.Recorded<S> |
record(MethodInvocationRecorder.Recorded.ToMapConverter<T,S> converter)
Record the method invocation traversing to a map property.
|
String |
toString() |
public Recorded(@Nullable T currentInstance, @Nullable MethodInvocationRecorder recorder)
public Optional<String> getPropertyPath(MethodInvocationRecorder.PropertyNameDetectionStrategy strategy)
public Optional<String> getPropertyPath(List<MethodInvocationRecorder.PropertyNameDetectionStrategy> strategies)
public <S> MethodInvocationRecorder.Recorded<S> record(Function<? super T,S> converter)
converter
- must not be null.public <S> MethodInvocationRecorder.Recorded<S> record(MethodInvocationRecorder.Recorded.ToCollectionConverter<T,S> converter)
converter
- must not be null.public <S> MethodInvocationRecorder.Recorded<S> record(MethodInvocationRecorder.Recorded.ToMapConverter<T,S> converter)
converter
- must not be null.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.