public final class IdentifierValidator extends Object
toStringmethod. Two equal identifiers must always produce the same
toStringvalues, even between JVM restarts. Typically, this also means
hashCodeneed to be implemented. For optimization purposes, this validator keeps a white-list of all aggregate types that have passed validation. This reduces the amount of reflection for types that have been already inspected.
|Modifier and Type||Method and Description|
Returns the singleton instance of the IdentifierValidator.
Indicates whether or not the given
public static IdentifierValidator getInstance()
public boolean isValidIdentifier(Class<?> identifierType)
identifierTypeis safe to use as aggregate identifier
identifierType- The class of the identifier
trueif the identifier is valid,
Copyright © 2010–2020. All rights reserved.