Java Code Examples for org.apache.commons.lang3.builder.HashCodeBuilder#hashCode()

The following examples show how to use org.apache.commons.lang3.builder.HashCodeBuilder#hashCode() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HTMLParserListenerTest.java    From htmlunit with Apache License 2.0 5 votes vote down vote up
/**
 * @see Object#hashCode()
 */
@Override
public int hashCode() {
    final HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(error_);
    builder.append(message_);
    builder.append(url_);
    builder.append(html_);
    builder.append(line_);
    builder.append(column_);
    return builder.hashCode();
}
 
Example 2
Source File: MetricResponse.java    From timely with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
    HashCodeBuilder hash = new HashCodeBuilder();
    hash.append(this.metric);
    hash.append(this.timestamp);
    hash.append(this.value);
    hash.append(this.tags);
    hash.append(this.subscriptionId);
    hash.append(this.complete);
    return hash.hashCode();
}
 
Example 3
Source File: ThresholdTrigger.java    From arcusplatform with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode() {	   
   HashCodeBuilder builder = new HashCodeBuilder(1, 31);
   builder.append(attributeName).append(threshold).append(sensitivity).append(triggerOn).append(sourcePredicate);
   return builder.hashCode();	   
}
 
Example 4
Source File: ThresholdTrigger.java    From arcusplatform with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode() {	   
   HashCodeBuilder builder = new HashCodeBuilder(1, 31);
   builder.append(attributeName).append(threshold).append(sensitivity).append(triggerOn).append(sourcePredicate);
   return builder.hashCode();	   
}