Examples of DualHashBidiMap


Examples of org.apache.commons.collections.bidimap.DualHashBidiMap

        this.readLock = contentItem.getLock().readLock();
        this.writeLock = contentItem.getLock().writeLock();
        executionMetadata = initExecutionMetadataContentPart(contentItem);
        if(executionMetadata.isEmpty()){
            //if we init from scratch
            this.executionsMap = new DualHashBidiMap(initExecutionMetadata(executionMetadata, executionPlan,
                contentItem.getUri(), chainName, isDefaultChain));
            chainExecutionNode = getChainExecution(executionMetadata, contentItem.getUri());
            executionPlanNode = getExecutionPlanNode(executionMetadata, chainExecutionNode);
            executionMetadata.addAll(executionPlan);
        } else {
View Full Code Here

Examples of org.apache.commons.collections.bidimap.DualHashBidiMap

            } else if(status.equals(ExecutionMetadata.STATUS_COMPLETED) ||
                    status.equals(ExecutionMetadata.STATUS_FAILED)){
               completed.add(executionEntry.getValue());
            }
        }
        this.executionsMap = new DualHashBidiMap(executionsMap);
        //check the first engines to execute after continuation
        checkExecutable();
    }
View Full Code Here

Examples of org.apache.commons.collections.bidimap.DualHashBidiMap

      option.value = Integer.valueOf(option.value.toString());
    add(option.key, option.value);
    Object staticObject = option.getStaticObject();
    if (staticObject != null) { // if object associated, use it
      if (objectMap == null)
        objectMap = new DualHashBidiMap();
      objectMap.put(option.value,staticObject);
    }
  }
View Full Code Here

Examples of org.apache.commons.collections.bidimap.DualHashBidiMap

     * @return A List of column id:s
     */
    public static List<Integer> getColumnIds( String columnNames, Map<String, Integer> allColumns,
                                              Map<String, Integer> deprecatedColumns, Log log )
    {
        DualHashBidiMap bidiColumns = null;
        List<Integer> columnIds = new ArrayList<Integer>();
        String[] columnNamesArray = columnNames.split( "," );

        if ( deprecatedColumns != null )
        {
            bidiColumns = new DualHashBidiMap( allColumns );
        }

        // Loop through the names of the columns, to validate each of them and add their id to the list
        for ( String aColumnNamesArray : columnNamesArray )
        {
            String columnName = aColumnNamesArray.trim();
            if ( allColumns.containsKey( columnName ) )
            {
                columnIds.add( allColumns.get( columnName ) );
            }
            else if ( deprecatedColumns != null && deprecatedColumns.containsKey( columnName ) )
            {
                Integer columnId = deprecatedColumns.get( columnName );
                columnIds.add( columnId );
                if ( log != null )
                {
                    log.warn( "The columnName '" + columnName + "' has been deprecated." + " Please use "
                            + "the columnName '" + bidiColumns.getKey( columnId ) + "' instead." );
                }
            }
        }
        return columnIds;
    }
View Full Code Here

Examples of org.apache.commons.collections.bidimap.DualHashBidiMap

        this.readLock = contentItem.getLock().readLock();
        this.writeLock = contentItem.getLock().writeLock();
        executionMetadata = initExecutionMetadataContentPart(contentItem);
        if(executionMetadata.isEmpty()){
            //if we init from scratch
            this.executionsMap = new DualHashBidiMap(initExecutionMetadata(executionMetadata, executionPlan,
                contentItem.getUri(), chainName, isDefaultChain));
            chainExecutionNode = getChainExecution(executionMetadata, contentItem.getUri());
            executionPlanNode = getExecutionPlanNode(executionMetadata, chainExecutionNode);
            executionMetadata.addAll(executionPlan);
        } else {
View Full Code Here

Examples of org.apache.commons.collections.bidimap.DualHashBidiMap

            } else if(status.equals(ExecutionMetadata.STATUS_COMPLETED) ||
                    status.equals(ExecutionMetadata.STATUS_FAILED)){
               completed.add(executionEntry.getValue());
            }
        }
        this.executionsMap = new DualHashBidiMap(executionsMap);
        //check the first engines to execute after continuation
        checkExecutable();
    }
View Full Code Here

Examples of org.apache.commons.collections.bidimap.DualHashBidiMap

    public TestUnmodifiableMapIterator(String testName) {
        super(testName);
    }

    public MapIterator makeEmptyMapIterator() {
        return UnmodifiableMapIterator.decorate(new DualHashBidiMap().mapIterator());
    }
View Full Code Here

Examples of org.apache.commons.collections.bidimap.DualHashBidiMap

    public MapIterator makeFullMapIterator() {
        return UnmodifiableMapIterator.decorate(((BidiMap) getMap()).mapIterator());
    }
   
    public Map getMap() {
        Map testMap = new DualHashBidiMap();
        testMap.put("A", "a");
        testMap.put("B", "b");
        testMap.put("C", "c");
        return testMap;
    }
View Full Code Here

Examples of org.apache.commons.collections15.bidimap.DualHashBidiMap

    public TestUnmodifiableMapIterator(String testName) {
        super(testName);
    }

    public MapIterator makeEmptyMapIterator() {
        return UnmodifiableMapIterator.decorate(new DualHashBidiMap().mapIterator());
    }
View Full Code Here

Examples of org.apache.commons.collections15.bidimap.DualHashBidiMap

    public MapIterator makeFullMapIterator() {
        return UnmodifiableMapIterator.decorate(((BidiMap) getMap()).mapIterator());
    }

    public Map getMap() {
        Map testMap = new DualHashBidiMap();
        testMap.put("A", "a");
        testMap.put("B", "b");
        testMap.put("C", "c");
        return testMap;
    }
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.