T - the object type.public interface AssertThatCastableObject<T> extends AssertThatObject<T>
| Modifier and Type | Method and Description |
|---|---|
<P extends T> |
as(Class<P> clazz)
Cast the received value into a sub-class of the receiver, before applying
the matcher.
|
<P extends T> AssertThatObject<P> as(Class<P> clazz)
P - The subtype for the conversionclazz - the target classthe assertion on the result of the
conversion.Copyright © 2015. All rights reserved.