Java Code Examples for java.util.Objects.hashCode()

The following are Jave code examples for showing how to use hashCode() of the java.util.Objects class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: GameResourceBot   File: Block.java   View Source Code Vote up 6 votes
@Override
public int hashCode() {
    int hash = 3;
    hash = 43 * hash + this.index;
    hash = 43 * hash + this.width;
    hash = 43 * hash + this.height;
    hash = 43 * hash + (this.allowGrid ? 1 : 0);
    hash = 43 * hash + this.blockAlign;
    hash = 43 * hash + Objects.hashCode(this.data);
    hash = 43 * hash + this.dataAlign;
    hash = 43 * hash + this.x;
    hash = 43 * hash + this.y;
    hash = 43 * hash + Objects.hashCode(this.rightBlock);
    hash = 43 * hash + Objects.hashCode(this.belowBlock);
    return hash;
}
 
Example 2
Project: vc   File: Operation_type.java   View Source Code Vote up 5 votes
@Override
public int hashCode() {
    int hash = 3;
    hash = 71 * hash + this.ID;
    hash = 71 * hash + Objects.hashCode(this.Name);
    hash = 71 * hash + Objects.hashCode(this.Default_Source);
    hash = 71 * hash + Objects.hashCode(this.Default_Dest);
    return hash;
}
 
Example 3
Project: bunsen   File: Hierarchies.java   View Source Code Vote up 5 votes
@Override
public int hashCode() {
  return 37
      * Objects.hashCode(this.ancestorSystem)
      * Objects.hashCode(this.ancestorValue)
      * Objects.hashCode(this.descendantSystem)
      * Objects.hashCode(this.descendantValue);
}
 
Example 4
Project: OpenJSharp   File: Fixups.java   View Source Code Vote up 5 votes
@Override
public int hashCode() {
    int hash = 7;
    hash = 59 * hash + this.desc;
    hash = 59 * hash + Objects.hashCode(this.entry);
    return hash;
}
 
Example 5
Project: progex   File: JavaICFGBuilder.java   View Source Code Vote up 5 votes
@Override
public int hashCode() {
	int hash = 7;
	hash = 29 * hash + Objects.hashCode(this.packageName);
	hash = 29 * hash + Objects.hashCode(this.className);
	hash = 29 * hash + Objects.hashCode(this.methodName);
	hash = 29 * hash + this.LoC;
	return hash;
}
 
Example 6
Project: OpenJSharp   File: ParameterizedTypeImpl.java   View Source Code Vote up 5 votes
@Override
public int hashCode() {
    return
        Arrays.hashCode(actualTypeArguments) ^
        Objects.hashCode(ownerType) ^
        Objects.hashCode(rawType);
}
 
Example 7
Project: betleopard   File: Horse.java   View Source Code Vote up 5 votes
@Override
public int hashCode() {
    int hash = 7;
    hash = 59 * hash + Objects.hashCode(this.name);
    hash = 59 * hash + (int) (this.id ^ (this.id >>> 32));
    return hash;
}
 
Example 8
Project: flightmanager   File: Flight.java   View Source Code Vote up 5 votes
@Override
public int hashCode() {
    int hash = 7;
    hash = 89 * hash + (int) (this.id ^ (this.id >>> 32));
    hash = 89 * hash + Objects.hashCode(this.plane);
    hash = 89 * hash + Objects.hashCode(this.companyId);
    hash = 89 * hash + Objects.hashCode(this.flightState);
    hash = 89 * hash + Objects.hashCode(this.departureTime);
    hash = 89 * hash + Objects.hashCode(this.arrivalTime);
    hash = 89 * hash + Objects.hashCode(this.departureAirport);
    hash = 89 * hash + Objects.hashCode(this.arrivalAirport);
    hash = 89 * hash + Objects.hashCode(this.isActive);
    return hash;
}
 
Example 9
Project: shoucang   File: Reply.java   View Source Code Vote up 4 votes
@Override
public int hashCode() {
    return Objects.hashCode(id);
}
 
Example 10
Project: qualitoast   File: Campagne.java   View Source Code Vote up 4 votes
@Override
public int hashCode() {
    return Objects.hashCode(getId());
}
 
Example 11
Project: uroborosql   File: DomainTest.java   View Source Code Vote up 4 votes
@Override
public int hashCode() {
	return Objects.hashCode(this.name);
}
 
Example 12
Project: Armory   File: DisciplineDTO.java   View Source Code Vote up 4 votes
@Override
public int hashCode() {
    return Objects.hashCode(id);
}
 
Example 13
Project: oryx2   File: Pair.java   View Source Code Vote up 4 votes
@Override
public int hashCode() {
  return Objects.hashCode(first) ^ Objects.hashCode(second);
}
 
Example 14
Project: spring-io   File: Brand.java   View Source Code Vote up 4 votes
@Override
public int hashCode() {
    return Objects.hashCode(getId());
}
 
Example 15
Project: Armory   File: Resource.java   View Source Code Vote up 4 votes
@Override
public int hashCode() {
    return Objects.hashCode(id);
}
 
Example 16
Project: elasticsearch_my   File: KeywordFieldMapper.java   View Source Code Vote up 4 votes
@Override
public int hashCode() {
    return 31 * super.hashCode() + Objects.hashCode(normalizer);
}
 
Example 17
Project: buenojo   File: PhotoLocationBeacon.java   View Source Code Vote up 4 votes
@Override
public int hashCode() {
    return Objects.hashCode(id);
}
 
Example 18
Project: luna   File: TraversableHashMap.java   View Source Code Vote up 4 votes
@Override
public int hashCode() {
  return Objects.hashCode(key) ^ Objects.hashCode(entry.getValue());
}
 
Example 19
Project: klask-io   File: File.java   View Source Code Vote up 4 votes
@Override
public int hashCode() {
    return Objects.hashCode(id);
}
 
Example 20
Project: TorgCRM-Server   File: DealDTO.java   View Source Code Vote up 4 votes
@Override
public int hashCode() {
    return Objects.hashCode(getId());
}