Package org.apache.commons.collections.map

Examples of org.apache.commons.collections.map.ListOrderedMap$2


        sum1 += weights[sum];
      }

      if (useWeight && sum1 > 0) {
        return new WeightedIndex$2(size, sum1, weights);
      } else {
        return create(size);
      }
    } else {
      return create(size);
View Full Code Here


  public static Icon getTile(RenderBlocks renderBlocks, Block block, int i, int j, int k, int face, Icon icon, Tessellator tessellator) {
    lastOverride = null;

    if (checkFace(face) && checkBlock(renderBlocks, block)) {
      IBlockAccess blockAccess = renderBlocks.blockAccess;
      CTMUtils$2 iterator = new CTMUtils$2(block, icon, blockAccess, i, j, k, face);
      lastOverride = iterator.go();

      if (lastOverride != null) {
        icon = iterator.getIcon();
      }
    }

    return lastOverride == null && skipDefaultRendering(block) ? null : icon;
  }
View Full Code Here

    /**
    * Remove the stamp from stack (when resuming)
    */
    private static void popTransactionStartStamp() {
        ListOrderedMap map = (ListOrderedMap) suspendedTxStartStamps.get();
        if (map.size() > 0) {
            transactionStartStamp.set((Timestamp) map.remove(map.lastKey()));
        } else {
            Debug.logError("Error in transaction handling - no saved start stamp found - using NOW.", module);
            transactionStartStamp.set(UtilDateTime.nowTimestamp());
        }
    }
View Full Code Here

        foreignKeys = new ArrayList(5);
        indices = new ArrayList(5);
        unices = new ArrayList(5);
        columnsByName = new Hashtable();
        columnsByJavaName = new Hashtable();
        options = Collections.synchronizedMap(new ListOrderedMap());
    }
View Full Code Here

     * parent table, small column list size allocation, non-unique).
     */
    public Index()
    {
        indexColumns = new ArrayList(3);
        options = Collections.synchronizedMap(new ListOrderedMap());
    }
View Full Code Here

     * @param name column name
     */
    public Column(String name)
    {
        this.name = name;
        options = Collections.synchronizedMap(new ListOrderedMap());
    }
View Full Code Here

   */
  public LanguageVariantDependentValuesMatrix() {
    super();

    // initialize map
    elementMatrix = new ListOrderedMap();
    propertyMatrix = new ListOrderedMap();
  }
View Full Code Here

   * Remember the given page headline under the given language variant.
   */
  public void addProperty(String property, String value, LanguageVariant languageVariant) throws RQLException {
    if (propertyMatrix.containsKey(property)) {
      // add at existing property new language variant value
      ListOrderedMap lvMap = getPropertyMap(property);
      lvMap.put(languageVariant, value);
    } else {
      // initialize new property at all
      ListOrderedMap lvMap = new ListOrderedMap();
      lvMap.put(languageVariant, value);
      propertyMatrix.put(property, lvMap);
    }
  }
View Full Code Here

    // add
    TemplateElement templateElement = contentElement.getTemplateElement();
    if (elementMatrix.containsKey(templateElement)) {
      // add for new language variant
      ListOrderedMap lvMap = getElementMap(templateElement);
      lvMap.put(languageVariant, contentElement);
    } else {
      // initialize new template element
      ListOrderedMap lvMap = new ListOrderedMap();
      lvMap.put(languageVariant, contentElement);
      elementMatrix.put(templateElement, lvMap);
    }
  }
View Full Code Here

    /**
    * Remove the stamp from stack (when resuming)
    */
    private static void popTransactionStartStamp() {
        ListOrderedMap map = (ListOrderedMap) suspendedTxStartStamps.get();
        if (map.size() > 0) {
            transactionStartStamp.set((Timestamp) map.remove(map.lastKey()));
        } else {
            Debug.logError("Error in transaction handling - no saved start stamp found - using NOW.", module);
            transactionStartStamp.set(UtilDateTime.nowTimestamp());
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.collections.map.ListOrderedMap$2

Copyright © 2018 www.massapicom. 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.