|
||||||||||
| 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.ListWrapperEntityExpanderResolver
public class ListWrapperEntityExpanderResolver
An entity expander resolver that can create a entity expander for list wrappers
| Constructor Summary | |
|---|---|
ListWrapperEntityExpanderResolver()
|
|
| Method Summary | ||
|---|---|---|
|
getExpander(java.lang.Class<? extends T> type)
Gets an EntityExpander for the given type. |
|
|
getExpander(T instance)
Gets an EntityExpander for the given instance. |
|
boolean |
hasExpander(java.lang.Class<?> type)
Tells whether this resolver can get an expander for the given instance. |
|
|
hasExpander(T instance)
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 ListWrapperEntityExpanderResolver()
| Method Detail |
|---|
public boolean hasExpander(java.lang.Class<?> type)
EntityExpanderResolver
type - 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.
T - 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.public final <T> boolean hasExpander(T instance)
EntityExpanderResolver
hasExpander in interface EntityExpanderResolverinstance - the object to resolve the expander for.
true if an expander can be found for this object instance, false otherwise.public final <T> EntityExpander<T> getExpander(T instance)
EntityExpanderResolverEntityExpander for the given instance.
getExpander in interface EntityExpanderResolverT - the type of object to retrieve the expander for.instance - the object to resolve the expander for.
null if none could be found. This method will never null if EntityExpanderResolver.hasExpander(Object) returns true for the same instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||