T - The type of the object being validatedpublic class IdentityValidator<T> extends Object implements Validator<T>
Validator implementation that requires an object to be the same
object as another object. If you only want to check for equality, use
EqualityValidator.| Constructor and Description |
|---|
IdentityValidator(T expectedValue)
Creates a new identity validator.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
boolean |
validate(T value)
Validates the given object.
|
Copyright © 2026. All rights reserved.