当前位置: 首页>>代码示例>>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;未经允许,请勿转载。