Here you can find the source of translate(String[] ids, String alias)
Parameter | Description |
---|---|
ids | the ids |
alias | the alias |
private static String translate(String[] ids, String alias)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w . jav a2 s .co m*/ * Checks if the id is a substring of the alias * * @param ids the ids * @param alias the alias * * @return the string */ private static String translate(String[] ids, String alias) { if (ids != null) { for (String id : ids) { if (id.indexOf(alias) != -1) { return id; } } return null; } return alias; } }