Example usage for org.apache.commons.collections4.map ListOrderedMap size

List of usage examples for org.apache.commons.collections4.map ListOrderedMap size

Introduction

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

Prototype

int size();

Source Link

Document

Returns the number of key-value mappings in this map.

Usage

From source file:org.apache.ofbiz.entity.transaction.TransactionUtil.java

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