T - the type of the probe.public interface Example<T>
Example takes a probe to define the example. Matching options
and type safety can be tuned using ExampleMatcher.| Modifier and Type | Method and Description |
|---|---|
ExampleMatcher |
getMatcher()
Get the
ExampleMatcher used. |
T |
getProbe()
Get the example used.
|
default Class<T> |
getProbeType()
Get the actual type for the probe used.
|
static <T> Example<T> |
of(T probe)
Create a new
Example including all non-null properties by default. |
static <T> Example<T> |
of(T probe,
ExampleMatcher matcher)
Create a new
Example using the given ExampleMatcher. |
static <T> Example<T> of(T probe)
Example including all non-null properties by default.probe - must not be null.static <T> Example<T> of(T probe, ExampleMatcher matcher)
Example using the given ExampleMatcher.probe - must not be null.matcher - must not be null.T getProbe()
ExampleMatcher getMatcher()
ExampleMatcher used.default Class<T> getProbeType()
ProxyUtils.getUserClass(Class)Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.