Example usage for org.apache.commons.collections.map HashedMap isEmpty

List of usage examples for org.apache.commons.collections.map HashedMap isEmpty

Introduction

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

Prototype

public boolean isEmpty() 

Source Link

Document

Checks whether the map is currently empty.

Usage

From source file:herddb.model.Transaction.java

public LockHandle lookupLock(String tableName, Bytes key) {
    HashedMap ll = locks.get(tableName);
    if (ll == null || ll.isEmpty()) {
        return null;
    }/*from www . ja v a  2  s.  c om*/
    return (LockHandle) ll.get(key);
}