List of usage examples for com.google.common.collect ImmutableSortedSet hashCode
int hashCode();
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()); }