Example usage for com.google.common.collect ImmutableSortedMap toString

List of usage examples for com.google.common.collect ImmutableSortedMap toString

Introduction

In this page you can find the example usage for com.google.common.collect ImmutableSortedMap toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

From source file:org.apache.atlas.typesystem.types.AbstractDataType.java

@Override
public void output(T val, Appendable buf, String prefix, Set<T> inProcess) throws AtlasException {
    final String strValue;

    if (val == null) {
        strValue = "<null>";
    } else if (val instanceof Map) {
        ImmutableSortedMap immutableSortedMap = ImmutableSortedMap.copyOf((Map) val);
        strValue = immutableSortedMap.toString();
    } else {//from   w w  w .  ja va2 s  . c  om
        strValue = val.toString();
    }

    TypeUtils.outputVal(strValue, buf, prefix);
}