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

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

Introduction

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

Prototype

public Collection values() 

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);// ww  w .j a va  2  s .c  o m
    return new BitVectorConfigRep(atoms, bitVector);
}