public class CachingActivityMapper extends Object implements ActivityMapper
ActivityMapper
and caches the last activity it
returned, to be re-used if we see the same place twice.Constructor and Description |
---|
CachingActivityMapper(ActivityMapper wrapped)
Constructs a CachingActivityMapper object.
|
Modifier and Type | Method and Description |
---|---|
Activity |
getActivity(Place place)
Returns the activity to run for the given
Place , or null. |
public CachingActivityMapper(ActivityMapper wrapped)
wrapped
- an ActivityMapper objectpublic Activity getActivity(Place place)
ActivityMapper
Place
, or null.getActivity
in interface ActivityMapper
place
- a Place objectCopyright © 2018. All rights reserved.