Example usage for java.net InetSocketAddress hashCode

List of usage examples for java.net InetSocketAddress hashCode

Introduction

In this page you can find the example usage for java.net InetSocketAddress hashCode.

Prototype

@Override
public final int hashCode() 

Source Link

Document

Returns a hashcode for this socket address.

Usage

From source file:de.skuzzle.polly.http.internal.HttpServerImpl.java

private final String createSessionId(InetSocketAddress ip) {
    final long id = RANDOM.nextLong() * System.currentTimeMillis() * ip.hashCode();
    return Long.toHexString(id);
}