org.apache.commons.collections.MultiMap.isEmpty()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(6.2k)|赞(0)|评价(0)|浏览(86)

本文整理了Java中org.apache.commons.collections.MultiMap.isEmpty()方法的一些代码示例,展示了MultiMap.isEmpty()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MultiMap.isEmpty()方法的具体详情如下:
包路径:org.apache.commons.collections.MultiMap
类名称:MultiMap
方法名:isEmpty

MultiMap.isEmpty介绍

暂无

代码示例

代码示例来源:origin: org.jsmiparser/jsmiparser-util

public boolean isEmpty() {
  return m_impl.isEmpty();
}

代码示例来源:origin: org.hibernate/hibernate-tools

public void addMetaAttributeInfo(TableIdentifier tableIdentifier, String name, MultiMap map) {
  if(map!=null && !map.isEmpty()) {
    columnMetaAttributes.put(new TableColumnKey( tableIdentifier, name ), map);
  }
}

代码示例来源:origin: hibernate/hibernate-tools

public void addMetaAttributeInfo(Table table, MultiMap map) {
  if(map!=null && !map.isEmpty()) {
    tableMetaAttributes.put(TableIdentifier.create(table), map);
  }
}

代码示例来源:origin: org.hibernate/hibernate-tools

public void addMetaAttributeInfo(Table table, MultiMap map) {
  if(map!=null && !map.isEmpty()) {
    tableMetaAttributes.put(TableIdentifier.create(table), map);
  }
}

代码示例来源:origin: hibernate/hibernate-tools

public void addMetaAttributeInfo(TableIdentifier tableIdentifier, String name, MultiMap map) {
  if(map!=null && !map.isEmpty()) {
    columnMetaAttributes.put(new TableColumnKey( tableIdentifier, name ), map);
  }
}

代码示例来源:origin: org.hibernate/hibernate-tools

protected Map<String, MetaAttribute> columnToMetaAttributes(TableIdentifier tableIdentifier, String column) {
  MultiMap specific = columnMetaAttributes.get( new TableColumnKey(tableIdentifier, column) );
  if(specific!=null && !specific.isEmpty()) {
    return toMetaAttributes(specific);
  }
  return null;
}

代码示例来源:origin: com.atlassian.jira/jira-core

public boolean isActive(EventType eventType)
{
  return !(getAssociatedWorkflows(eventType, true).isEmpty() && getAssociatedNotificationSchemes(eventType).isEmpty());
}

代码示例来源:origin: hibernate/hibernate-tools

protected Map<String, MetaAttribute> columnToMetaAttributes(TableIdentifier tableIdentifier, String column) {
  MultiMap specific = columnMetaAttributes.get( new TableColumnKey(tableIdentifier, column) );
  if(specific!=null && !specific.isEmpty()) {
    return toMetaAttributes(specific);
  }
  return null;
}

代码示例来源:origin: org.hibernate/hibernate-tools

protected Map<String,MetaAttribute> tableToMetaAttributes(TableIdentifier identifier) {
  MultiMap specific = tableMetaAttributes.get( identifier );
  if(specific!=null && !specific.isEmpty()) {
    return toMetaAttributes(specific);
  }
  Map<?,?> general = findGeneralAttributes( identifier );
  if(general!=null && !general.isEmpty()) {
    return toMetaAttributes(general);
  }
  return null;
  /* inheritance not defined yet
   if(specific==null) { specific = Collections.EMPTY_MAP; }
  if(general==null) { general = Collections.EMPTY_MAP; }
  MultiMap map = MetaAttributeBinder.mergeMetaMaps( specific, general );
  */
  /*
  if(map!=null && !map.isEmpty()) {
    return toMetaAttributes(null, map);
  } else {
    return null;
  }
  */
}

代码示例来源:origin: org.hibernate/hibernate-tools

private static void bindMetaAttributes(Element element, Table table, OverrideRepository repository) {
  MultiMap map = MetaAttributeBinder.loadAndMergeMetaMap( element, new MultiValueMap());
  if(map!=null && !map.isEmpty()) {
    repository.addMetaAttributeInfo( table, map);
  } 
}

代码示例来源:origin: hibernate/hibernate-tools

private static void bindMetaAttributes(
    Element element, 
    Table table, 
    OverrideRepository repository) {
  MultiMap map = MetaAttributeHelper.loadAndMergeMetaMap( element, new MultiValueMap());
  if(map!=null && !map.isEmpty()) {
    repository.addMetaAttributeInfo( table, map);
  } 
}

代码示例来源:origin: hibernate/hibernate-tools

protected Map<String,MetaAttribute> tableToMetaAttributes(TableIdentifier identifier) {
  MultiMap specific = tableMetaAttributes.get( identifier );
  if(specific!=null && !specific.isEmpty()) {
    return toMetaAttributes(specific);
  }
  Map<?,?> general = findGeneralAttributes( identifier );
  if(general!=null && !general.isEmpty()) {
    return toMetaAttributes(general);
  }
  return null;
  /* inheritance not defined yet
   if(specific==null) { specific = Collections.EMPTY_MAP; }
  if(general==null) { general = Collections.EMPTY_MAP; }
  MultiMap map = MetaAttributeBinder.mergeMetaMaps( specific, general );
  */
  /*
  if(map!=null && !map.isEmpty()) {
    return toMetaAttributes(null, map);
  } else {
    return null;
  }
  */
}

代码示例来源:origin: org.hibernate/hibernate-tools

private static void bindTableFilters(List<?> filters, OverrideRepository respository) {
  Iterator<?> iterator = filters.iterator();
  
  while(iterator.hasNext() ) {
    Element element = (Element) iterator.next();
    TableFilter filter = new TableFilter();
    filter.setMatchCatalog(element.attributeValue("match-catalog") );
    filter.setMatchSchema(element.attributeValue("match-schema") );
    filter.setMatchName(element.attributeValue("match-name") );
    filter.setExclude(Boolean.valueOf(element.attributeValue("exclude") ) );
    filter.setPackage(element.attributeValue("package") );
    
    MultiMap map = MetaAttributeBinder.loadAndMergeMetaMap( element, new MultiValueMap());
    if(map!=null && !map.isEmpty()) {
      filter.setMetaAttributes( map );
    } else {
      filter.setMetaAttributes( null );                
    }
    respository.addTableFilter(filter);
  }
  
}

代码示例来源:origin: org.hibernate/hibernate-tools

if(map!=null && !map.isEmpty()) {
  repository.addMetaAttributeInfo( tableIdentifier, column.getName(), map);

代码示例来源:origin: hibernate/hibernate-tools

if(map!=null && !map.isEmpty()) {
  repository.addMetaAttributeInfo( tableIdentifier, column.getName(), map);

代码示例来源:origin: hibernate/hibernate-tools

private static void bindTableFilters(
    ArrayList<Element> tableFilters, 
    OverrideRepository repository) {        
  for (Element element : tableFilters) {
    TableFilter tableFilter = new TableFilter();
    tableFilter.setMatchCatalog(getAttribute(element, "match-catalog"));
    tableFilter.setMatchSchema(getAttribute(element, "match-schema"));
    tableFilter.setMatchName(getAttribute(element, "match-name"));
    tableFilter.setExclude(Boolean.valueOf(getAttribute(element, "exclude")));
    tableFilter.setPackage(getAttribute(element, "package"));
    MultiMap map = MetaAttributeHelper.loadAndMergeMetaMap(element, new MultiValueMap());
    if (map != null && !map.isEmpty()) {
      tableFilter.setMetaAttributes(map);
    } else {
      tableFilter.setMetaAttributes(null);
    }
    repository.addTableFilter(tableFilter);
  }
}

代码示例来源:origin: com.atlassian.jira/jira-core

getBulkEditBean().getWorkflowTransitionMap().isEmpty())

相关文章