Example usage for com.google.common.collect ImmutableTable cellSet

List of usage examples for com.google.common.collect ImmutableTable cellSet

Introduction

In this page you can find the example usage for com.google.common.collect ImmutableTable cellSet.

Prototype

@Override
    public ImmutableSet<Cell<R, C, V>> cellSet() 

Source Link

Usage

From source file:com.google.devtools.build.lib.skyframe.serialization.ImmutableTableCodec.java

@Override
public void serialize(SerializationContext context, ImmutableTable<R, C, V> object, CodedOutputStream codedOut)
        throws SerializationException, IOException {
    Set<Cell<R, C, V>> cellSet = object.cellSet();
    codedOut.writeInt32NoTag(cellSet.size());
    for (Cell<R, C, V> cell : cellSet) {
        context.serialize(cell.getRowKey(), codedOut);
        context.serialize(cell.getColumnKey(), codedOut);
        context.serialize(cell.getValue(), codedOut);
    }/*www  .j av  a 2s  . c  o  m*/
}