List of usage examples for com.google.common.collect TreeBasedTable create
public static <R, C, V> TreeBasedTable<R, C, V> create(TreeBasedTable<R, C, ? extends V> table)
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); }