Example usage for org.springframework.session.data.gemfire AbstractGemFireOperationsSessionRepository.GemFireSession hashCode

List of usage examples for org.springframework.session.data.gemfire AbstractGemFireOperationsSessionRepository.GemFireSession hashCode

Introduction

In this page you can find the example usage for org.springframework.session.data.gemfire AbstractGemFireOperationsSessionRepository.GemFireSession hashCode.

Prototype

@HotSpotIntrinsicCandidate
public native int hashCode();

Source Link

Document

Returns a hash code value for the object.

Usage

From source file:org.springframework.session.data.gemfire.AbstractGemFireOperationsSessionRepositoryTest.java

@Test
public void sessionHashCodeIsNotEqualToStringIdHashCode() {
    AbstractGemFireOperationsSessionRepository.GemFireSession session = new AbstractGemFireOperationsSessionRepository.GemFireSession(
            "1");

    assertThat(session.getId()).isEqualTo("1");
    assertThat(session.hashCode()).isNotEqualTo("1".hashCode());
}