|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugins.rest.common.expand.resolver.ChainingEntityExpanderResolver
public class ChainingEntityExpanderResolver
| Constructor Summary | |
|---|---|
ChainingEntityExpanderResolver(java.util.List<EntityExpanderResolver> resolvers)
|
|
| Method Summary | ||
|---|---|---|
|
getExpander(java.lang.Class<? extends T> type)
Gets an EntityExpander for the given type. |
|
boolean |
hasExpander(java.lang.Class<?> type)
Tells whether this resolver can get an expander for the given instance. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChainingEntityExpanderResolver(java.util.List<EntityExpanderResolver> resolvers)
| Method Detail |
|---|
public boolean hasExpander(java.lang.Class<?> type)
EntityExpanderResolver
hasExpander in interface EntityExpanderResolvertype - the type to resolve the expander for.
true if an expander can be found for this object instance, false otherwise.public <T> EntityExpander<T> getExpander(java.lang.Class<? extends T> type)
EntityExpanderResolverEntityExpander for the given type.
getExpander in interface EntityExpanderResolverT - the type of object to retrieve the expander for.type - the type of object to look up the expander for.
null if none could be found. This method will never return null if
EntityExpanderResolver.hasExpander(Class) returns true for the same instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||