Back to project page AndroidGraph.
The source code is released under:
MIT License
If you think the Android project AndroidGraph 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.nimble.android_graph.generics; // ww w . ja va 2 s.c o m import android.net.wifi.WifiManager; import android.view.View; import java.lang.reflect.Method; /** * A Class containing some generic functions for Methods. * @author Michael Leith * @since 02/07/2014. * @version 1.0 */ public final class Methods { View view; Methods(View v) { view = v; } /** * Returns the method with the given name. * @param manager WifiManager * @param s String * @return Method - null if not found */ static public final Method getMethodByName(WifiManager manager, String s) { Method[] curMethods = manager.getClass().getDeclaredMethods(); for (Method m : curMethods) if (m.getName().equals(s)) return m; return null; } }