本文整理匯總了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;
}