Class ReflectionMap.Builder<V>

java.lang.Object
org.apache.juneau.utils.ReflectionMap.Builder<V>
Type Parameters:
V - The type of object in this map.
Direct Known Subclasses:
DebugEnablementMap.Builder
Enclosing class:
ReflectionMap<V>

public static class ReflectionMap.Builder<V> extends Object
Builder class.
  • Constructor Details

  • Method Details

    • append

      public ReflectionMap.Builder<V> append(String key, V value)
      Adds a mapping to this builder.
      Parameters:
      key - The mapping key.
      Can be any of the following:
      • Full class name (e.g. "com.foo.MyClass").
      • Simple class name (e.g. "MyClass").
      • All classes (e.g. "*").
      • Full method name (e.g. "com.foo.MyClass.myMethod").
      • Simple method name (e.g. "MyClass.myMethod").
      • A comma-delimited list of anything on this list.
      value - The value for this mapping.
      Returns:
      This object.
    • build

      public ReflectionMap<V> build()
      Create new instance of ReflectionMap based on the contents of this builder.
      Returns:
      A new ReflectionMap object.
    • copy

      Creates a copy of this builder.
      Returns:
      A copy of this builder.