當前位置: 首頁>>代碼示例>>Java>>正文


Java Table.containsRow方法代碼示例

本文整理匯總了Java中com.google.common.collect.Table.containsRow方法的典型用法代碼示例。如果您正苦於以下問題:Java Table.containsRow方法的具體用法?Java Table.containsRow怎麽用?Java Table.containsRow使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.google.common.collect.Table的用法示例。


在下文中一共展示了Table.containsRow方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: hasValidValueId

import com.google.common.collect.Table; //導入方法依賴的package包/類
@Override
protected boolean hasValidValueId(final FhAttributeData attribute, final List<Violation> violations)
{
	final Table<Optional<String>, Optional<Locale>, String> values = attribute.getValues();
	if (!values.containsRow(Optional.empty()))
	{
		rejectValue(attribute, violations, "The \"text\" attribute value does not have an identifier.");
		return false;
	}
	return true;
}
 
開發者ID:fredhopper,項目名稱:hybris-connector,代碼行數:12,代碼來源:TextAttributeValidator.java

示例2: hasValidValueId

import com.google.common.collect.Table; //導入方法依賴的package包/類
@Override
protected boolean hasValidValueId(final FhAttributeData attribute, final List<Violation> violations)
{
	final Table<Optional<String>, Optional<Locale>, String> values = attribute.getValues();
	if (!values.containsRow(Optional.empty()))
	{
		rejectValue(attribute, violations, "The \"asset\" attribute value does not have an identifier.");
		return false;
	}
	return true;
}
 
開發者ID:fredhopper,項目名稱:hybris-connector,代碼行數:12,代碼來源:AssetAttributeValidator.java

示例3: hasValidValueId

import com.google.common.collect.Table; //導入方法依賴的package包/類
@Override
protected boolean hasValidValueId(final FhAttributeData attribute, final List<Violation> violations)
{
	final Table<Optional<String>, Optional<Locale>, String> values = attribute.getValues();
	if (!values.containsRow(Optional.empty()))
	{
		rejectValue(attribute, violations, "The \"float\" attribute value does not have an identifier.");
		return false;
	}
	return true;
}
 
開發者ID:fredhopper,項目名稱:hybris-connector,代碼行數:12,代碼來源:FloatAttributeValidator.java

示例4: hasValidValueId

import com.google.common.collect.Table; //導入方法依賴的package包/類
@Override
protected boolean hasValidValueId(final FhAttributeData attribute, final List<Violation> violations)
{
	final Table<Optional<String>, Optional<Locale>, String> values = attribute.getValues();
	if (!values.containsRow(Optional.empty()))
	{
		rejectValue(attribute, violations, "The \"int\" attribute value does not have an identifier.");
		return false;
	}
	return true;
}
 
開發者ID:fredhopper,項目名稱:hybris-connector,代碼行數:12,代碼來源:IntAttributeValidator.java

示例5: getModelIndexTable

import com.google.common.collect.Table; //導入方法依賴的package包/類
/**
 * Return the modelIndexTable for the ASSERTS in input
 * @param assertList
 * @param modelIndexTable
 * @return
 */
public static Table<String, String, Double> getModelIndexTable(Set<ASSERT> assertList, Table<String, String, Double> modelIndexTable){
	HashMap<String, Double> modelIndexes = null;
	Double tempValue = null;
	String tempKey = null;
	
	for(ASSERT assertEl : assertList){
		modelIndexes = Retriever.getModelIndexes(assertEl);
		tempKey = null;
		
		for(Map.Entry<String, Double> entry : modelIndexes.entrySet()){
			// Se nella tabella � presente l'indice contenuto nel certificato
			tempKey = entry.getKey();
			if(modelIndexTable.containsRow(tempKey)){
				// Parte dei minimi
				tempValue = modelIndexTable.get(tempKey, "Min");
				if(tempValue == null || tempValue > entry.getValue()){
					modelIndexTable.put(tempKey, "Min", entry.getValue());
				}
				// Parte dei massimi
				tempValue = modelIndexTable.get(tempKey, "Max");
				if(tempValue == null || tempValue < entry.getValue()){
					modelIndexTable.put(tempKey, "Max", entry.getValue());
				}
			}
		}
	}
	
	return modelIndexTable;
}
 
開發者ID:SESARLab,項目名稱:Assert4SOA-MatchMaker,代碼行數:36,代碼來源:Retriever.java


注:本文中的com.google.common.collect.Table.containsRow方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。