Package org.apache.juneau.utils
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>
Builder class.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Builder()
Constructor.protected
Builder
(ReflectionMap.Builder<V> copyFrom) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionAdds a mapping to this builder.build()
Create new instance ofReflectionMap
based on the contents of this builder.copy()
Creates a copy of this builder.
-
Constructor Details
-
Builder
protected Builder()Constructor. -
Builder
Copy constructor.- Parameters:
copyFrom
- The builder being copied.
-
-
Method Details
-
append
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.
- Full class name (e.g.
value
- The value for this mapping.- Returns:
- This object.
-
build
Create new instance ofReflectionMap
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.
-