org.apache.jena.graph.Triple.hashCode()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中org.apache.jena.graph.Triple.hashCode()方法的一些代码示例,展示了Triple.hashCode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Triple.hashCode()方法的具体详情如下:
包路径:org.apache.jena.graph.Triple
类名称:Triple
方法名:hashCode

Triple.hashCode介绍

[英]The hash-code of a triple is the hash-codes of its components munged together: see hashCode(S, P, O).
[中]三元组的散列码是其组成部分的散列码:参见散列码(S,P,O)。

代码示例

代码示例来源:origin: apache/jena

@Override
public int hashCode()
{
  return OpBase.HashTriple ^ triple.hashCode() ;
}

代码示例来源:origin: apache/jena

/**
  The hash-code of a triple is the hash-codes of its components munged
  together: see hashCode(S, P, O).
*/
@Override
public int hashCode() 
  { return hashCode( subj, pred, obj ); }

代码示例来源:origin: org.apache.jena/jena-core

/**
  The hash-code of a triple is the hash-codes of its components munged
  together: see hashCode(S, P, O).
*/
@Override
public int hashCode() 
  { return hashCode( subj, pred, obj ); }

代码示例来源:origin: TopQuadrant/shacl

@Override
public int hashCode() {
  return triple.hashCode();
}

代码示例来源:origin: ch.epfl.bluebrain.nexus.org.topbraid/shacl

@Override
public int hashCode() {
  return triple.hashCode();
}

代码示例来源:origin: org.apache.jena/jena-core

@Override public int hashCode() {
  return asTriple().hashCode();
}

代码示例来源:origin: apache/jena

@Override public int hashCode() {
  return asTriple().hashCode();
}

代码示例来源:origin: apache/jena

@Override
public int hashCode()
{
  if ( hash == -1 )
  {
    if ( isTriple() )
      hash = asTriple().hashCode() ;
    else
      hash = (subject.hashCode()<<2) ^ path.hashCode() ^ (object.hashCode()<<1) ;
  }
  return hash ;
}

相关文章