com.hp.hpl.jena.graph.Triple.hashCode()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(151)

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

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

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

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

代码示例来源:origin: org.apache.clerezza.ext/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: paulhoule/infovore

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

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

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

代码示例来源:origin: com.hp.hpl.jena/arq

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

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

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

相关文章