V
- The type of object in this map.public class ReflectionMap<V> extends Object
The valid pattern matches are:
Modifier and Type | Class and Description |
---|---|
static class |
ReflectionMap.Builder<V>
Creates a new builder object for
ReflectionMap objects. |
Modifier and Type | Method and Description |
---|---|
static <V> ReflectionMap.Builder<V> |
create(Class<V> c)
Static builder creator.
|
Optional<V> |
find(Class<?> c,
Class<? extends V> ofType)
Finds first value in this map that matches the specified class.
|
Optional<V> |
find(Constructor<?> c,
Class<? extends V> ofType)
Finds first value in this map that matches the specified constructor.
|
Optional<V> |
find(Field f,
Class<? extends V> ofType)
Finds first value in this map that matches the specified field.
|
Optional<V> |
find(Method m,
Class<? extends V> ofType)
Finds first value in this map that matches the specified method.
|
String |
toString() |
public static <V> ReflectionMap.Builder<V> create(Class<V> c)
V
- The type of object in this map.c
- The type of object in this map.public Optional<V> find(Class<?> c, Class<? extends V> ofType)
c
- The class to test for.ofType
- Only return objects of the specified type.public Optional<V> find(Method m, Class<? extends V> ofType)
m
- The method to test for.ofType
- Only return objects of the specified type.public Optional<V> find(Field f, Class<? extends V> ofType)
f
- The field to test for.ofType
- Only return objects of the specified type.public Optional<V> find(Constructor<?> c, Class<? extends V> ofType)
c
- The constructor to test for.ofType
- Only return objects of the specified type.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.