Java Integer Hash intHashCode(int i)

Here you can find the source of intHashCode(int i)

Description

int Hash Code

License

Apache License

Return

The hash code for an int which would be returned from

Declaration

public static int intHashCode(int i) 

Method Source Code

//package com.java2s;
/*/*from  www . j  a  v  a 2s . co m*/
 *
 *  Copyright 2016 Netflix, Inc.
 *
 *     Licensed under the Apache License, Version 2.0 (the "License");
 *     you may not use this file except in compliance with the License.
 *     You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 *     Unless required by applicable law or agreed to in writing, software
 *     distributed under the License is distributed on an "AS IS" BASIS,
 *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *     See the License for the specific language governing permissions and
 *     limitations under the License.
 *
 */

public class Main {
    /**
     * @return The hash code for an int which would be returned from {@link #fieldHashCode(HollowObjectTypeDataAccess, int, int)}
     */
    public static int intHashCode(int i) {
        return i;
    }
}

Related

  1. intHash(int input)
  2. intHash(int key)
  3. intHash(int number, int max)
  4. intHash(long a)
  5. intHashCode(final int value)
  6. intHashToLong(int hash)