Back to project page nosey.
The source code is released under:
Apache License
If you think the Android project nosey listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.btellez.noseyexplorer; /*from w w w . j a v a2s . c o m*/ import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; public interface Inspector { public void inspect(Nosey nosey); public static class ModelNameInspector implements Inspector { private Nosey nosey; private List<String> modelNames; @Override public void inspect(Nosey nosey) { this.nosey = nosey; } public List<String> getModelNames() { if (modelNames == null) { modelNames = new ArrayList<String>(); if (nosey != null) { modelNames.addAll(nosey.objectTypes.keySet()); Collections.sort(modelNames); } } return modelNames; } } public static class ModelMapInspector implements Inspector { private Nosey nosey; private Map<String, Class> modelMap; @Override public void inspect(Nosey nosey) { this.nosey = nosey; } public Map<String, Class> getModelMap() { return nosey.objectTypes; } } }