本文整理了Java中org.apache.logging.log4j.Marker.hashCode()
方法的一些代码示例,展示了Marker.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Marker.hashCode()
方法的具体详情如下:
包路径:org.apache.logging.log4j.Marker
类名称:Marker
方法名:hashCode
[英]Returns a hash code value based on the name of this marker. Markers are equal if they have the same name.
[中]基于此标记的名称返回哈希代码值。如果标记具有相同的名称,则它们是相等的。
代码示例来源:origin: org.apache.logging.log4j/log4j-slf4j-impl
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((marker == null) ? 0 : marker.hashCode());
return result;
}
代码示例来源:origin: org.apache.logging.log4j/log4j-slf4j18-impl
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((marker == null) ? 0 : marker.hashCode());
return result;
}
代码示例来源:origin: ops4j/org.ops4j.pax.logging
@Override
public int hashCode() {
// Check:OFF: MagicNumber
int result = loggerFqcn != null ? loggerFqcn.hashCode() : 0;
result = 31 * result + (marker != null ? marker.hashCode() : 0);
result = 31 * result + (level != null ? level.hashCode() : 0);
result = 31 * result + loggerName.hashCode();
result = 31 * result + message.hashCode();
result = 31 * result + (int) (timeMillis ^ (timeMillis >>> 32));
result = 31 * result + (int) (nanoTime ^ (nanoTime >>> 32));
result = 31 * result + (thrown != null ? thrown.hashCode() : 0);
result = 31 * result + (thrownProxy != null ? thrownProxy.hashCode() : 0);
result = 31 * result + (contextData != null ? contextData.hashCode() : 0);
result = 31 * result + (contextStack != null ? contextStack.hashCode() : 0);
result = 31 * result + (int) (threadId ^ (threadId >>> 32));
result = 31 * result + (threadName != null ? threadName.hashCode() : 0);
result = 31 * result + (threadPriority ^ (threadPriority >>> 32));
result = 31 * result + (source != null ? source.hashCode() : 0);
result = 31 * result + (includeLocation ? 1 : 0);
result = 31 * result + (endOfBatch ? 1 : 0);
// Check:ON: MagicNumber
return result;
}
内容来源于网络,如有侵权,请联系作者删除!