@Test private static <T> int getPositionInList(T[] list, T element) { for(int i = 0; i < list.length; i++) if(list[i].equals(element)) return i; return -1; }
public static <T extends Serializable> int getPositionInList(T[] list, T element) { for (int i = 0; i < list.length; i++) if(list[i].equals(element)) return i; return -1; }
DataProcessUtil { public static <T extends Serializable> int getPositionInList(T[] list, T element) { for (int i = 0; i < list.length; i++) if(list[i].equals(element)) return i; return -1; } }
DataProcessUtil { public static <T extends Serializable> int getPositionInList(T[] list, T element) { for (int i = 0; i < list.length; i++) if(list[i].equals(element)) return i; return -1; }  }
DataProcessUtil { public static <T extends Serializable> int getPositionInList(T[] list, T element) { for (int i = 0; i < list.length; i++) if(list[i].equals(element)) return i; return -1; }  static String getView(int view); static float getFloatRandom(Random r, float lrange, float urange); static String getMinFromSec(int sec); static String joinList(String[] list, String split); static String joinArrayList(ArrayList<String> list, String split); static int dip2px(float dpValue); static int sp2px(float spValue); static int getPositionInArrayList(ArrayList arrayList, String string); static int getPositionInList(T[] list, T element); static String handleUrl(String url); static String getSize(long size); static String getSurplusTime(long surplusByte, int speed); static String getTime(int timeStamp, String pattern); static String getFriendlyTime(int timeStamp); static CharSequence getClickableHtml(String html, Html.ImageGetter imageGetter); static void printLog(String log); }
DataProcessUtil { public static <T extends Serializable> int getPositionInList(T[] list, T element) { for (int i = 0; i < list.length; i++) if(list[i].equals(element)) return i; return -1; }  static String getView(int view); static float getFloatRandom(Random r, float lrange, float urange); static String getMinFromSec(int sec); static String joinList(String[] list, String split); static String joinArrayList(ArrayList<String> list, String split); static int dip2px(float dpValue); static int sp2px(float spValue); static int getPositionInArrayList(ArrayList arrayList, String string); static int getPositionInList(T[] list, T element); static String handleUrl(String url); static String getSize(long size); static String getSurplusTime(long surplusByte, int speed); static String getTime(int timeStamp, String pattern); static String getFriendlyTime(int timeStamp); static CharSequence getClickableHtml(String html, Html.ImageGetter imageGetter); static void printLog(String log);  }