Class Configuration

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 Details

  • Method Details

    • qualifiers

      public final Qualifiers<? extends String,?> qualifiers()
      Returns a Qualifiers representing all qualifiers in the Configuration.
      Returns:
      a Qualifiers representing all qualifiers in the Configuration
      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

      public final Qualifiers<? extends String,?> qualifiers(Iterable<? extends String> names)
      Returns a Qualifiers representing all qualifiers in the Configuration associated with the supplied sequence of names.
      Parameters:
      names - a sequence of names identifying a path to the root of a tree of qualifiers; may be null
      Returns:
      a Qualifiers representing all qualifiers in the Configuration associated 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

      protected final Object any(String name)
      Returns an Object in this Configuration indexed under the supplied name.
      Parameters:
      name - the name; must not be null
      Returns:
      the associated Object, or null
      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

      public int hashCode()
      Returns a hashcode for this Configuration.
      Overrides:
      hashCode in class Object
      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

      public boolean equals(Object other)
      Returns true if the supplied Object is equal to this Configuration.
      Overrides:
      equals in class Object
      Parameters:
      other - the Object to test; may be null
      Returns:
      true if the supplied Object is equal to 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.
    • toString

      public String toString()
      Returns a String representation of this Configuration.

      The format of the returned String is deliberately undefined and subject to change between revisions of this class without notice.

      Overrides:
      toString in class Object
      Returns:
      a String representation of this Configuration
      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.