-
public final class InjectedViewAdapterInstance<T extends InjectedViewAdapter>Internal use only.
Represents an "instance" of an InjectedViewAdapter which will be shown in one or more screens' InjectedViewContainer.
We use this class to wrap the InjectedViewAdapter and attach additional information needed to manage it.
We need to know with which InjectedViewContainer the view adapter is associated with to prevent destructive modifications from view containers that are not the currently associated one. For example if the view adapter is shown in a new view container and the previous one is destroyed then the view adapter won't be destroyed because the new associated view container is different than the old one.
-
-
Field Summary
Fields Modifier and Type Field Description private final TviewAdapterprivate InjectedViewContainer<T>viewContainer
-
Constructor Summary
Constructors Constructor Description InjectedViewAdapterInstance(T viewAdapter, InjectedViewContainer<T> viewContainer)InjectedViewAdapterInstance(T viewAdapter)
-
Method Summary
Modifier and Type Method Description final TgetViewAdapter()final InjectedViewContainer<T>getViewContainer()final UnitsetViewContainer(InjectedViewContainer<T> viewContainer)-
-
Constructor Detail
-
InjectedViewAdapterInstance
InjectedViewAdapterInstance(T viewAdapter, InjectedViewContainer<T> viewContainer)
-
InjectedViewAdapterInstance
InjectedViewAdapterInstance(T viewAdapter)
-
-
Method Detail
-
getViewAdapter
final T getViewAdapter()
-
getViewContainer
final InjectedViewContainer<T> getViewContainer()
-
setViewContainer
final Unit setViewContainer(InjectedViewContainer<T> viewContainer)
-
-
-
-