本文整理匯總了Java中javax.management.openmbean.TabularType.getIndexNames方法的典型用法代碼示例。如果您正苦於以下問題:Java TabularType.getIndexNames方法的具體用法?Java TabularType.getIndexNames怎麽用?Java TabularType.getIndexNames使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類javax.management.openmbean.TabularType
的用法示例。
在下文中一共展示了TabularType.getIndexNames方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: isTypeMatched
import javax.management.openmbean.TabularType; //導入方法依賴的package包/類
protected static boolean isTypeMatched(TabularType type1, TabularType type2) {
if (type1 == type2) return true;
List<String> list1 = type1.getIndexNames();
List<String> list2 = type2.getIndexNames();
// check if the list of index names are the same
if (!list1.equals(list2))
return false;
return isTypeMatched(type1.getRowType(), type2.getRowType());
}
示例2: isTypeMatched
import javax.management.openmbean.TabularType; //導入方法依賴的package包/類
protected static boolean isTypeMatched(TabularType type1, TabularType type2) {
if (type1 == type2) return true;
List list1 = type1.getIndexNames();
List list2 = type2.getIndexNames();
// check if the list of index names are the same
if (!list1.equals(list2))
return false;
return isTypeMatched(type1.getRowType(), type2.getRowType());
}
示例3: testGetIndexNames
import javax.management.openmbean.TabularType; //導入方法依賴的package包/類
public Result testGetIndexNames() throws Exception {
TabularType tabularType = getTabularType();
List indexNamesToVerify = tabularType.getIndexNames();
if (!(indexNamesToVerify.get(0).equals(indexNames[0]) && indexNamesToVerify
.get(1).equals(indexNames[1]))) {
throw new Exception("tabularType.getIndexNames() works incorrectly");
}
return result();
}