Example usage for com.google.common.collect ImmutableList hashCode

List of usage examples for com.google.common.collect ImmutableList hashCode

Introduction

In this page you can find the example usage for com.google.common.collect ImmutableList hashCode.

Prototype

@Override
    public int hashCode() 

Source Link

Usage

From source file:de.metas.ui.web.view.descriptor.ViewLayout.java

private static final ImmutableMap<String, String> extractETagAttributes(
        final ImmutableList<DocumentFilterDescriptor> filters, final String allowNewCaption) {
    final String filtersNorm = filters == null ? "0" : String.valueOf(filters.hashCode());
    final String allowNewCaptionNorm = allowNewCaption == null ? "0"
            : String.valueOf(allowNewCaption.hashCode());
    return ImmutableMap.of("filters", filtersNorm, "allowNew", allowNewCaptionNorm);
}