Example usage for org.apache.commons.lang3.builder HashCodeBuilder HashCodeBuilder

List of usage examples for org.apache.commons.lang3.builder HashCodeBuilder HashCodeBuilder

Introduction

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

Prototype

public HashCodeBuilder() 

Source Link

Document

Uses two hard coded choices for the constants needed to build a hashCode.

Usage

From source file:com.galenframework.ide.devices.tasks.DeviceTask.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(taskId).append(name).append(commands).toHashCode();
}

From source file:com.lexicalscope.fluentreflection.FluentObjectImpl.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(instance).toHashCode();
}

From source file:ezbake.discovery.stethoscope.server.StethoscopeCacheEntry.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(applicationName).append(serviceName).append(time).toHashCode();
}

From source file:io.neba.core.resourcemodels.registration.LookupResult.java

/**
 * @param source       must not be <code>null</code>
 * @param resourceType must not be <code>null</code>
 *//*from  w  w  w  .ja  va 2  s.c  o m*/
public LookupResult(OsgiModelSource<?> source, String resourceType) {
    if (source == null) {
        throw new IllegalArgumentException("Method argument source must not be null.");
    }
    if (resourceType == null) {
        throw new IllegalArgumentException("Method argument resourceType must not be null.");
    }

    this.source = source;
    this.resourceType = resourceType;
    this.hashCode = new HashCodeBuilder().append(source).append(resourceType).toHashCode();
}

From source file:com.hp.ov.sdk.dto.OverriddenSettingsTemplate.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(id).append(value).toHashCode();
}

From source file:com.hp.ov.sdk.dto.serverhardwaretype.SettingOptionLink.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(action).append(optionId).append(settingId).toHashCode();
}

From source file:de.ailis.usb4java.libusb.DeviceHandle.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(this.deviceHandlePointer).toHashCode();
}

From source file:com.hp.ov.sdk.dto.LogicalSwitchGroup.java

@Override
public int hashCode() {
    return new HashCodeBuilder().appendSuper(super.hashCode()).append(fabricUri).append(switchMapTemplate)
            .toHashCode();// w  ww  .ja v  a  2s.  c o m
}

From source file:de.blizzy.documentr.page.PageChangedEvent.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(projectName).append(branchName).append(path).toHashCode();
}

From source file:ch.aonyx.broker.ib.api.system.RegisterClientRequest.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(clientId).toHashCode();
}