com.github.fge.jsonschema.processors.validation
Class SchemaContextEquivalence
java.lang.Object
com.google.common.base.Equivalence<SchemaContext>
com.github.fge.jsonschema.processors.validation.SchemaContextEquivalence
public final class SchemaContextEquivalence
- extends Equivalence<SchemaContext>
Equivalence for schema contexts
This is used by ValidationChain
and ValidationProcessor
to
cache computation results. Two schema contexts are considered equivalent if:
- schema trees are considered equivalent,
- and the type of the instance is the same.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchemaContextEquivalence
public SchemaContextEquivalence()
getInstance
public static Equivalence<SchemaContext> getInstance()
doEquivalent
protected boolean doEquivalent(SchemaContext a,
SchemaContext b)
- Specified by:
doEquivalent
in class Equivalence<SchemaContext>
doHash
protected int doHash(SchemaContext t)
- Specified by:
doHash
in class Equivalence<SchemaContext>