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

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

Introduction

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

Prototype

int hashCode();

Source Link

Document

Returns the hash code value for this set.

Usage

From source file:com.facebook.buck.jvm.java.intellij.IjFolder.java

IjFolder(Path path, boolean wantsPackagePrefix, ImmutableSortedSet<Path> inputs) {
    this.path = path;
    this.wantsPackagePrefix = wantsPackagePrefix;
    this.inputs = (inputs == null) ? EMPTY_INPUTS : inputs;
    this.inputsHash = inputs.hashCode();
}

From source file:com.facebook.buck.features.project.intellij.model.folders.IjFolder.java

IjFolder(Path path, boolean wantsPackagePrefix, ImmutableSortedSet<Path> inputs) {
    this.path = path;
    this.wantsPackagePrefix = wantsPackagePrefix;
    this.inputs = (inputs == null) ? EMPTY_INPUTS : inputs;
    hashCodeSupplier = Suppliers.memoize(
            () -> (getPath().hashCode() << 31) ^ (getWantsPackagePrefix() ? 0x8000 : 0) ^ inputs.hashCode());
}