Package com.mchange.v2.reflect
Class ByNameInstantiationUtils.Warned
- java.lang.Object
-
- com.mchange.v2.reflect.ByNameInstantiationUtils.Warned
-
- Enclosing class:
- ByNameInstantiationUtils
public static final class ByNameInstantiationUtils.Warned extends java.lang.ObjectA record that a warning aboutfqcn's absence from the whitelist has already been emitted, under the configurationpcfg. These are the elements of the set callers hand toByNameInstantiationUtils.checkWarnThrowForInstantiateByNameGated(String,PropertiesConfig,Set), which both reads and writes them. Callers do not usually construct these themselves — they just supply an empty, mutable set for the gate to fill.Note that a
Warnedis keyed on the configuration as well as the class name, so that a configuration change which might have changed the whitelist warns afresh. See that method's documentation for what that implies in practice.
-
-
Constructor Summary
Constructors Constructor Description Warned(java.lang.String fqcn, PropertiesConfig pcfg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(ByNameInstantiationUtils.Warned w)booleanequals(java.lang.Object o)inthashCode()
-
-
-
Constructor Detail
-
Warned
public Warned(java.lang.String fqcn, PropertiesConfig pcfg)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
equals
public boolean equals(ByNameInstantiationUtils.Warned w)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-