Example usage for org.apache.commons.lang3.builder Person hashCode

List of usage examples for org.apache.commons.lang3.builder Person hashCode

Introduction

In this page you can find the example usage for org.apache.commons.lang3.builder Person hashCode.

Prototype

@HotSpotIntrinsicCandidate
public native int hashCode();

Source Link

Document

Returns a hash code value for the object.

Usage

From source file:org.ruogu.lang3.builder.TestBuilder.java

public static void testHashCode() {
    System.out.println("------------testHashCode-------------");

    Person p = new Person();
    p.age = 12;/*w ww.  j a v  a  2s.  c o m*/
    p.name = "tom";
    p.smoker = true;

    System.out.println(p.hashCode());
    System.out.println(p.hashCode2());

}