java.lang.Object
org.microbean.loader.jackson.Configuration
A Java object that represents a tree-like configuration structure,
using Jackson mapping constructs to make things easier.
- Author:
- Laird Nelson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectbooleaninthashCode()Returns a hashcode for thisConfiguration.final Qualifiers<? extends String,?> Returns aQualifiersrepresenting all qualifiers in theConfiguration.final Qualifiers<? extends String,?> qualifiers(Iterable<? extends String> names) Returns aQualifiersrepresenting all qualifiers in theConfigurationassociated with the supplied sequence of names.toString()Returns aStringrepresentation of thisConfiguration.
-
Constructor Details
-
Configuration
public Configuration()Creates a newConfiguration.
-
-
Method Details
-
qualifiers
Returns aQualifiersrepresenting all qualifiers in theConfiguration.- Returns:
- a
Qualifiersrepresenting all qualifiers in theConfiguration - Idempotency:
- This method is idempotent and deterministic.
- Nullability:
- This method never returns
null. - Thread Safety:
- This method is not safe for concurrent use by multiple threads.
-
qualifiers
Returns aQualifiersrepresenting all qualifiers in theConfigurationassociated with the supplied sequence of names.- Parameters:
names- a sequence of names identifying a path to the root of a tree of qualifiers; may benull- Returns:
- a
Qualifiersrepresenting all qualifiers in theConfigurationassociated with the supplied sequence of names - Idempotency:
- This method is idempotent and deterministic.
- Nullability:
- This method never returns
null. - Thread Safety:
- This method is not safe for concurrent use by multiple threads.
-
any
- Parameters:
name- the name; must not benull- Returns:
- the associated
Object, ornull - Idempotency:
- This method is idempotent and deterministic.
- Nullability:
- This method may return
null. - Thread Safety:
- This method is not safe for concurrent use by multiple threads.
-
hashCode
Returns a hashcode for thisConfiguration.- Overrides:
hashCodein classObject- Returns:
- a hashcode for this
Configuration - Idempotency:
- This method is, and its overrides must be, idempotent and deterministic.
- Thread Safety:
- This method is not safe for concurrent use by multiple threads.
-
equals
- Overrides:
equalsin classObject- Parameters:
other- theObjectto test; may benull- Returns:
trueif the suppliedObjectis equal to thisConfiguration- Idempotency:
- This method is, and its overrides must be, idempotent and deterministic.
- Thread Safety:
- This method is not safe for concurrent use by multiple threads.
-
toString
Returns aStringrepresentation of thisConfiguration.The format of the returned
Stringis deliberately undefined and subject to change between revisions of this class without notice.- Overrides:
toStringin classObject- Returns:
- a
Stringrepresentation of thisConfiguration - Idempotency:
- This method is, and its overrides must be, idempotent and deterministic.
- Nullability:
- This method does not, and its overrides must not,
return
null. - Thread Safety:
- This method is not safe for concurrent use by multiple threads.
-