V
- the base typepublic interface ClassMapper<V>
Modifier and Type | Method and Description |
---|---|
<R extends V> |
getOrThrow(Class<R> clazz)
Puts a new mapping and returns the mapping for the given class, or throws
an exception if no mapping exists.
|
V |
put(V item)
Adds a mapping for an item.
|
Stream<Map.Entry<Class<?>,V>> |
stream()
Returns a
Stream of all mappings that exists. |
V put(V item)
item
- to add<R extends V> R getOrThrow(Class<R> clazz)
R
- The class typeclazz
- the class to useCopyright © 2018 Speedment, Inc.. All rights reserved.