Example usage for com.google.common.collect TreeBasedTable create

List of usage examples for com.google.common.collect TreeBasedTable create

Introduction

In this page you can find the example usage for com.google.common.collect TreeBasedTable create.

Prototype

public static <R, C, V> TreeBasedTable<R, C, V> create(TreeBasedTable<R, C, ? extends V> table) 

Source Link

Document

Creates a TreeBasedTable with the same mappings and sort order as the specified TreeBasedTable .

Usage

From source file:fi.jyu.ties454.cleaningAgents.infra.Floor.java

/**
 * Copies the current map (but not any of the listeners attached to it)
 * /*from  ww w .j  av a  2  s  .c  o  m*/
 * @return A new map
 */
public synchronized Floor copyMap() {
    TreeBasedTable<Integer, Integer, FloorState> mapCopy = TreeBasedTable.create(this.map);
    return new Floor(mapCopy);
}