Example usage for org.apache.commons.collections.bidimap UnmodifiableBidiMap isEmpty

List of usage examples for org.apache.commons.collections.bidimap UnmodifiableBidiMap isEmpty

Introduction

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

Prototype

public boolean isEmpty() 

Source Link

Usage

From source file:br.ufpe.cin.emergo.instrument.bitrep.BitVectorConfigRep.java

public static BitVectorConfigRep convert(BitConfigRep rep, UnmodifiableBidiMap atoms) {
    int max = atoms.isEmpty() ? 1 : ((Integer) Collections.max(atoms.values())) << 1;
    BitVector bitVector = new BitVector(max);
    bitVector.put(rep.getId(), true);/*from  ww w  .j  a v a 2s . co m*/
    return new BitVectorConfigRep(atoms, bitVector);
}