本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}