Example usage for org.apache.commons.collections.map ListOrderedMap remove

List of usage examples for org.apache.commons.collections.map ListOrderedMap remove

Introduction

In this page you can find the example usage for org.apache.commons.collections.map ListOrderedMap remove.

Prototype

public Object remove(int index) 

Source Link

Document

Removes the element at the specified index.

Usage

From source file:org.etk.entity.engine.plugins.transaction.TransactionUtil.java

/**
 * Remove the stamp from stack (when resuming)
 *///from w  ww. j  ava  2s.  co m
private static void popTransactionStartStamp() {
    ListOrderedMap map = (ListOrderedMap) suspendedTxStartStamps.get();
    if (map.size() > 0) {
        transactionStartStamp.set((Timestamp) map.remove(map.lastKey()));
    } else {
        logger.debug("Error in transaction handling - no saved start stamp found - using NOW.");
        transactionStartStamp.set(UtilDateTime.nowTimestamp());
    }
}

From source file:org.noerp.entity.transaction.TransactionUtil.java

/**
* Remove the stamp from stack (when resuming)
*///from ww w.  j  av a 2s.com
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());
    }
}