本文整理了Java中android.graphics.Typeface.hashCode()
方法的一些代码示例,展示了Typeface.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Typeface.hashCode()
方法的具体详情如下:
包路径:android.graphics.Typeface
类名称:Typeface
方法名:hashCode
暂无
代码示例来源:origin: facebook/TextLayoutBuilder
hashCode = 31 * hashCode + (paint.getTypeface() != null ? paint.getTypeface().hashCode() : 0);
hashCode = 31 * hashCode + Float.floatToIntBits(mShadowDx);
hashCode = 31 * hashCode + Float.floatToIntBits(mShadowDy);
代码示例来源:origin: NASAWorldWind/WorldWindAndroid
@Override
public int hashCode() {
int result = (this.text != null ? this.text.hashCode() : 0);
result = 31 * result + (this.textColor != null ? this.textColor.hashCode() : 0);
result = 31 * result + (this.textSize != +0.0f ? Float.floatToIntBits(this.textSize) : 0);
result = 31 * result + (this.typeface != null ? this.typeface.hashCode() : 0);
result = 31 * result + (this.enableOutline ? 1 : 0);
result = 31 * result + (this.outlineColor != null ? this.outlineColor.hashCode() : 0);
result = 31 * result + (this.outlineWidth != +0.0f ? Float.floatToIntBits(this.outlineWidth) : 0);
return result;
}
}
代码示例来源:origin: NASAWorldWind/WorldWindAndroid
@Override
public int hashCode() {
int result = this.textColor.hashCode();
result = 31 * result + this.textOffset.hashCode();
result = 31 * result + (this.textSize != +0.0f ? Float.floatToIntBits(this.textSize) : 0);
result = 31 * result + (this.typeface != null ? this.typeface.hashCode() : 0);
result = 31 * result + (this.enableOutline ? 1 : 0);
result = 31 * result + this.outlineColor.hashCode();
result = 31 * result + (this.enableDepthTest ? 1 : 0);
result = 31 * result + (this.outlineWidth != +0.0f ? Float.floatToIntBits(this.outlineWidth) : 0);
return result;
}
内容来源于网络,如有侵权,请联系作者删除!