public class SubClassValidator extends Object implements Validator<Object>
Validator implementation that validates that an object‘s
class is assignable from a given class, i.e. that its class is the given class or a
subclass of it.| Constructor and Description |
|---|
SubClassValidator(Class<?> targetClass)
Creates a new subclass validator.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
boolean |
validate(Object value)
Validates the given object.
|
Copyright © 2026. All rights reserved.