Java Code Examples for java.lang.Double#doubleToLongBits()

The following examples show how to use java.lang.Double#doubleToLongBits() . 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: AllTypesModelViewModel_.java    From epoxy with Apache License 2.0 6 votes vote down vote up
@Override
public int hashCode() {
  int _result = super.hashCode();
  _result = 31 * _result + (onModelBoundListener_epoxyGeneratedModel != null ? 1 : 0);
  _result = 31 * _result + (onModelUnboundListener_epoxyGeneratedModel != null ? 1 : 0);
  _result = 31 * _result + (onModelVisibilityStateChangedListener_epoxyGeneratedModel != null ? 1 : 0);
  _result = 31 * _result + (onModelVisibilityChangedListener_epoxyGeneratedModel != null ? 1 : 0);
  long temp;
  _result = 31 * _result + (booleanValue_Boolean ? 1 : 0);
  _result = 31 * _result + (boxedBooleanValue_Boolean != null ? boxedBooleanValue_Boolean.hashCode() : 0);
  _result = 31 * _result + (charSequenceValue_CharSequence != null ? charSequenceValue_CharSequence.hashCode() : 0);
  _result = 31 * _result + (boxedDoubleValue_Double != null ? boxedDoubleValue_Double.hashCode() : 0);
  temp = Double.doubleToLongBits(doubleValue_Double);
  _result = 31 * _result + (int) (temp ^ (temp >>> 32));
  _result = 31 * _result + drawableRes_Int;
  _result = 31 * _result + (epoxyModelList_List != null ? epoxyModelList_List.hashCode() : 0);
  _result = 31 * _result + intValue_Int;
  _result = 31 * _result + (boxedIntValue_Integer != null ? boxedIntValue_Integer.hashCode() : 0);
  _result = 31 * _result + (int) (longValue_Long ^ (longValue_Long >>> 32));
  _result = 31 * _result + (boxedLongValue_Long != null ? boxedLongValue_Long.hashCode() : 0);
  _result = 31 * _result + (onClickListener_OnClickListener != null ? 1 : 0);
  _result = 31 * _result + rawRes_Int;
  _result = 31 * _result + (stringValue_String != null ? stringValue_String.hashCode() : 0);
  _result = 31 * _result + (stringList_List != null ? stringList_List.hashCode() : 0);
  return _result;
}
 
Example 2
Source File: DataBindingModelWithAllFieldTypesNoValidation_.java    From epoxy with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
  int _result = super.hashCode();
  _result = 31 * _result + (onModelBoundListener_epoxyGeneratedModel != null ? 1 : 0);
  _result = 31 * _result + (onModelUnboundListener_epoxyGeneratedModel != null ? 1 : 0);
  _result = 31 * _result + (onModelVisibilityStateChangedListener_epoxyGeneratedModel != null ? 1 : 0);
  _result = 31 * _result + (onModelVisibilityChangedListener_epoxyGeneratedModel != null ? 1 : 0);
  long temp;
  _result = 31 * _result + valueInt;
  _result = 31 * _result + (valueInteger != null ? valueInteger.hashCode() : 0);
  _result = 31 * _result + valueShort;
  _result = 31 * _result + (valueShortWrapper != null ? valueShortWrapper.hashCode() : 0);
  _result = 31 * _result + valueChar;
  _result = 31 * _result + (valueCharacter != null ? valueCharacter.hashCode() : 0);
  _result = 31 * _result + valuebByte;
  _result = 31 * _result + (valueByteWrapper != null ? valueByteWrapper.hashCode() : 0);
  _result = 31 * _result + (int) (valueLong ^ (valueLong >>> 32));
  _result = 31 * _result + (valueLongWrapper != null ? valueLongWrapper.hashCode() : 0);
  temp = Double.doubleToLongBits(valueDouble);
  _result = 31 * _result + (int) (temp ^ (temp >>> 32));
  _result = 31 * _result + (valueDoubleWrapper != null ? valueDoubleWrapper.hashCode() : 0);
  _result = 31 * _result + (valueFloat != +0.0f ? Float.floatToIntBits(valueFloat) : 0);
  _result = 31 * _result + (valueFloatWrapper != null ? valueFloatWrapper.hashCode() : 0);
  _result = 31 * _result + (valueBoolean ? 1 : 0);
  _result = 31 * _result + (valueBooleanWrapper != null ? valueBooleanWrapper.hashCode() : 0);
  _result = 31 * _result + Arrays.hashCode(valueIntArray);
  _result = 31 * _result + Arrays.hashCode(valueObjectArray);
  _result = 31 * _result + (valueString != null ? valueString.hashCode() : 0);
  _result = 31 * _result + (valueObject != null ? valueObject.hashCode() : 0);
  _result = 31 * _result + (valueList != null ? valueList.hashCode() : 0);
  return _result;
}
 
Example 3
Source File: ModelWithAllFieldTypes_.java    From epoxy with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
  int _result = super.hashCode();
  _result = 31 * _result + (onModelBoundListener_epoxyGeneratedModel != null ? 1 : 0);
  _result = 31 * _result + (onModelUnboundListener_epoxyGeneratedModel != null ? 1 : 0);
  _result = 31 * _result + (onModelVisibilityStateChangedListener_epoxyGeneratedModel != null ? 1 : 0);
  _result = 31 * _result + (onModelVisibilityChangedListener_epoxyGeneratedModel != null ? 1 : 0);
  long temp;
  _result = 31 * _result + valueInt;
  _result = 31 * _result + (valueInteger != null ? valueInteger.hashCode() : 0);
  _result = 31 * _result + valueShort;
  _result = 31 * _result + (valueShortWrapper != null ? valueShortWrapper.hashCode() : 0);
  _result = 31 * _result + valueChar;
  _result = 31 * _result + (valueCharacter != null ? valueCharacter.hashCode() : 0);
  _result = 31 * _result + valuebByte;
  _result = 31 * _result + (valueByteWrapper != null ? valueByteWrapper.hashCode() : 0);
  _result = 31 * _result + (int) (valueLong ^ (valueLong >>> 32));
  _result = 31 * _result + (valueLongWrapper != null ? valueLongWrapper.hashCode() : 0);
  temp = Double.doubleToLongBits(valueDouble);
  _result = 31 * _result + (int) (temp ^ (temp >>> 32));
  _result = 31 * _result + (valueDoubleWrapper != null ? valueDoubleWrapper.hashCode() : 0);
  _result = 31 * _result + (valueFloat != +0.0f ? Float.floatToIntBits(valueFloat) : 0);
  _result = 31 * _result + (valueFloatWrapper != null ? valueFloatWrapper.hashCode() : 0);
  _result = 31 * _result + (valueBoolean ? 1 : 0);
  _result = 31 * _result + (valueBooleanWrapper != null ? valueBooleanWrapper.hashCode() : 0);
  _result = 31 * _result + Arrays.hashCode(valueIntArray);
  _result = 31 * _result + Arrays.hashCode(valueObjectArray);
  _result = 31 * _result + (valueString != null ? valueString.hashCode() : 0);
  _result = 31 * _result + (valueObject != null ? valueObject.hashCode() : 0);
  _result = 31 * _result + (valueList != null ? valueList.hashCode() : 0);
  return _result;
}
 
Example 4
Source File: DataBindingModelWithAllFieldTypes_.java    From epoxy with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
  int _result = super.hashCode();
  _result = 31 * _result + (onModelBoundListener_epoxyGeneratedModel != null ? 1 : 0);
  _result = 31 * _result + (onModelUnboundListener_epoxyGeneratedModel != null ? 1 : 0);
  _result = 31 * _result + (onModelVisibilityStateChangedListener_epoxyGeneratedModel != null ? 1 : 0);
  _result = 31 * _result + (onModelVisibilityChangedListener_epoxyGeneratedModel != null ? 1 : 0);
  long temp;
  _result = 31 * _result + valueInt;
  _result = 31 * _result + (valueInteger != null ? valueInteger.hashCode() : 0);
  _result = 31 * _result + valueShort;
  _result = 31 * _result + (valueShortWrapper != null ? valueShortWrapper.hashCode() : 0);
  _result = 31 * _result + valueChar;
  _result = 31 * _result + (valueCharacter != null ? valueCharacter.hashCode() : 0);
  _result = 31 * _result + valuebByte;
  _result = 31 * _result + (valueByteWrapper != null ? valueByteWrapper.hashCode() : 0);
  _result = 31 * _result + (int) (valueLong ^ (valueLong >>> 32));
  _result = 31 * _result + (valueLongWrapper != null ? valueLongWrapper.hashCode() : 0);
  temp = Double.doubleToLongBits(valueDouble);
  _result = 31 * _result + (int) (temp ^ (temp >>> 32));
  _result = 31 * _result + (valueDoubleWrapper != null ? valueDoubleWrapper.hashCode() : 0);
  _result = 31 * _result + (valueFloat != +0.0f ? Float.floatToIntBits(valueFloat) : 0);
  _result = 31 * _result + (valueFloatWrapper != null ? valueFloatWrapper.hashCode() : 0);
  _result = 31 * _result + (valueBoolean ? 1 : 0);
  _result = 31 * _result + (valueBooleanWrapper != null ? valueBooleanWrapper.hashCode() : 0);
  _result = 31 * _result + Arrays.hashCode(valueIntArray);
  _result = 31 * _result + Arrays.hashCode(valueObjectArray);
  _result = 31 * _result + (valueString != null ? valueString.hashCode() : 0);
  _result = 31 * _result + (valueObject != null ? valueObject.hashCode() : 0);
  _result = 31 * _result + (valueList != null ? valueList.hashCode() : 0);
  return _result;
}
 
Example 5
Source File: ModelWithAllPrivateFieldTypes_.java    From epoxy with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
  int _result = super.hashCode();
  _result = 31 * _result + (onModelBoundListener_epoxyGeneratedModel != null ? 1 : 0);
  _result = 31 * _result + (onModelUnboundListener_epoxyGeneratedModel != null ? 1 : 0);
  _result = 31 * _result + (onModelVisibilityStateChangedListener_epoxyGeneratedModel != null ? 1 : 0);
  _result = 31 * _result + (onModelVisibilityChangedListener_epoxyGeneratedModel != null ? 1 : 0);
  long temp;
  _result = 31 * _result + getValueInt();
  _result = 31 * _result + (getValueInteger() != null ? getValueInteger().hashCode() : 0);
  _result = 31 * _result + getValueShort();
  _result = 31 * _result + (getValueShortWrapper() != null ? getValueShortWrapper().hashCode() : 0);
  _result = 31 * _result + getValueChar();
  _result = 31 * _result + (getValueCharacter() != null ? getValueCharacter().hashCode() : 0);
  _result = 31 * _result + getValuebByte();
  _result = 31 * _result + (getValueByteWrapper() != null ? getValueByteWrapper().hashCode() : 0);
  _result = 31 * _result + (int) (getValueLong() ^ (getValueLong() >>> 32));
  _result = 31 * _result + (getValueLongWrapper() != null ? getValueLongWrapper().hashCode() : 0);
  temp = Double.doubleToLongBits(getValueDouble());
  _result = 31 * _result + (int) (temp ^ (temp >>> 32));
  _result = 31 * _result + (getValueDoubleWrapper() != null ? getValueDoubleWrapper().hashCode() : 0);
  _result = 31 * _result + (getValueFloat() != +0.0f ? Float.floatToIntBits(getValueFloat()) : 0);
  _result = 31 * _result + (getValueFloatWrapper() != null ? getValueFloatWrapper().hashCode() : 0);
  _result = 31 * _result + (isValueBoolean() ? 1 : 0);
  _result = 31 * _result + (getValueBooleanWrapper() != null ? getValueBooleanWrapper().hashCode() : 0);
  _result = 31 * _result + Arrays.hashCode(getValueIntArray());
  _result = 31 * _result + Arrays.hashCode(getValueObjectArray());
  _result = 31 * _result + (getValueString() != null ? getValueString().hashCode() : 0);
  _result = 31 * _result + (getValueObject() != null ? getValueObject().hashCode() : 0);
  _result = 31 * _result + (getValueList() != null ? getValueList().hashCode() : 0);
  return _result;
}
 
Example 6
Source File: ColorInput.java    From apollo-android with MIT License 5 votes vote down vote up
@Override
public boolean equals(Object o) {
  if (o == this) {
    return true;
  }
  if (o instanceof ColorInput) {
    ColorInput that = (ColorInput) o;
    return this.red == that.red
     && this.green.equals(that.green)
     && Double.doubleToLongBits(this.blue) == Double.doubleToLongBits(that.blue)
     && this.enumWithDefaultValue.equals(that.enumWithDefaultValue)
     && this.reviewRefInput.equals(that.reviewRefInput);
  }
  return false;
}
 
Example 7
Source File: ColorInput.java    From apollo-android with MIT License 5 votes vote down vote up
@Override
public boolean equals(Object o) {
  if (o == this) {
    return true;
  }
  if (o instanceof ColorInput) {
    ColorInput that = (ColorInput) o;
    return this.red == that.red
     && this.green.equals(that.green)
     && Double.doubleToLongBits(this.blue) == Double.doubleToLongBits(that.blue)
     && this.enumWithDefaultValue.equals(that.enumWithDefaultValue)
     && this.reviewRefInput.equals(that.reviewRefInput);
  }
  return false;
}
 
Example 8
Source File: ColorInput.java    From apollo-android with MIT License 5 votes vote down vote up
@Override
public boolean equals(Object o) {
  if (o == this) {
    return true;
  }
  if (o instanceof ColorInput) {
    ColorInput that = (ColorInput) o;
    return this.red == that.red
     && this.green.equals(that.green)
     && Double.doubleToLongBits(this.blue) == Double.doubleToLongBits(that.blue)
     && this.enumWithDefaultValue.equals(that.enumWithDefaultValue)
     && this.reviewRefInput.equals(that.reviewRefInput);
  }
  return false;
}