Example usage for com.google.common.base Optional hashCode

List of usage examples for com.google.common.base Optional hashCode

Introduction

In this page you can find the example usage for com.google.common.base Optional hashCode.

Prototype

@Override
public abstract int hashCode();

Source Link

Document

Returns a hash code for this instance.

Usage

From source file:org.immutables.fixture.jdkonly.JdkOptionalBuilderFactory.java

@Builder.Factory
public static int appl(Optional<Integer> a, java.util.Optional<String> b, java.util.OptionalInt c) {
    return a.hashCode() + b.hashCode() + c.hashCode();
}

From source file:org.immutables.fixture.jdkonly.JdkOptionalBuilderFactory.java

@Builder.Factory
public static int bbz(@Builder.Parameter java.util.Optional<String> b,
        @Builder.Parameter java.util.OptionalInt c) {
    return b.hashCode() + c.hashCode();
}