Examples of MultiHashMap


Examples of org.apache.commons.collections.MultiHashMap

      TableIdentifier tableIdentifier = TableIdentifier.create(table);
      if(table.getColumn(column)!=null) {
        throw new MappingException("Column " + column.getName() + " already exists in table " + tableIdentifier );
      }
     
      MultiMap map = MetaAttributeBinder.loadAndMergeMetaMap( element, new MultiHashMap());
      if(map!=null && !map.isEmpty()) {
        repository.addMetaAttributeInfo( tableIdentifier, column.getName(), map);
      }
     
      table.addColumn(column);
View Full Code Here

Examples of org.apache.commons.collections.MultiHashMap

      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 MultiHashMap());
      if(map!=null && !map.isEmpty()) {
        filter.setMetaAttributes( map );
      } else {
        filter.setMetaAttributes( null );       
      }
View Full Code Here

Examples of org.apache.commons.collections.MultiHashMap

    this.m_keyMMap = ecdw.get_keyMap();
  }

    // TODO: don't hardcode initial size
    private void createBlankCache() {
        this.m_eventMMap = new MultiHashMap(100);
        this.m_keyMMap = new MultiHashMap(100);
    }
View Full Code Here

Examples of org.apache.commons.collections.MultiHashMap

                                         * TransactionClass
                                         * >
                                         */groupToMap(
      Collection<TransactionClass> transactions,
      String groupByPropertyName) throws Exception {
    MultiHashMap/* <String, TransactionClass> */resultMap = new MultiHashMap/*
                                         * <
                                         * String
                                         * ,
                                         * TransactionClass
                                         * >
                                         */();
    for (TransactionClass transaction : transactions) {
      String propertyValue = ReflectionBoostUtils.getProperty(
          transaction, groupByPropertyName);
      resultMap.put(propertyValue, transaction);
    }

    return resultMap;
  }
View Full Code Here

Examples of org.apache.commons.collections.MultiHashMap

    return result;
  }

  public static <TransactionClass extends SecuritiesTransaction> List<SummarizedTransaction<TransactionClass>> groupByAsset(
      Collection<TransactionClass> transactions) throws Exception {
    MultiHashMap/* <String, TransactionClass> */groupedTransactions = groupToMapByAsset(transactions);
    List<SummarizedTransaction<TransactionClass>> result = group(
        groupedTransactions, ASSET);
    for (SummarizedTransaction<TransactionClass> sum : result) {
      if (!sum.getSubtransactions().isEmpty()) {
        TransactionClass firstTransaction = sum.getSubtransactions()
View Full Code Here

Examples of org.apache.commons.collections.MultiHashMap

    return result;
  }

  public static <TransactionClass extends SecuritiesTransaction> List<SummarizedTransaction<TransactionClass>> groupByAccount(
      Collection<TransactionClass> transactions) throws Exception {
    MultiHashMap/* <String, TransactionClass> */groupedTransactions = groupToMapByAccount(transactions);
    return group(groupedTransactions, ACCOUNT);
  }
View Full Code Here

Examples of org.apache.commons.collections15.multimap.MultiHashMap

     * Override to return a map other than HashMap as the confirmed map.
     *
     * @return a map that is known to be valid
     */
    public MultiMap makeConfirmedMap() {
        return new MultiHashMap();
    }
View Full Code Here

Examples of org.apache.commons.collections15.multimap.MultiHashMap

    public String getCompatibilityVersion() {
        return "2";
    }

    public MultiMap makeEmptyMap() {
        return new MultiHashMap();
    }
View Full Code Here

Examples of org.apache.commons.collections15.multimap.MultiHashMap

    //----------------------------
    //          Tests
    //----------------------------
    public void testPutNGet() {
        MultiHashMap map = new MultiHashMap();
        loadMap(map);
        checkMap(map);

        assertTrue(map.get(new Integer(99)) == null);

        map.clear();
        assertTrue(map.size() == 0);
    }
View Full Code Here

Examples of org.apache.commons.collections15.multimap.MultiHashMap

        map.clear();
        assertTrue(map.size() == 0);
    }

    public void testContainsValue() {
        MultiHashMap map = new MultiHashMap();
        loadMap(map);

        assertTrue(map.containsValue("uno"));
        assertTrue(map.containsValue("quatro"));
        assertTrue(map.containsValue("two"));

        assertTrue(!map.containsValue("uggaBugga"));

        map.clear();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.