本文整理了Java中com.hp.hpl.jena.sparql.core.Var.hashCode()
方法的一些代码示例,展示了Var.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Var.hashCode()
方法的具体详情如下:
包路径:com.hp.hpl.jena.sparql.core.Var
类名称:Var
方法名:hashCode
暂无
代码示例来源:origin: com.hp.hpl.jena/arq
@Override
public int hashCode() { return varNode.hashCode() ; }
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
@Override
public int hashCode() { return varNode.hashCode() ; }
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
@Override
public int hashCode()
{
return var.hashCode()^expr.hashCode();
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
@Override
public int hashCode()
{
return var.hashCode()^expr.hashCode();
}
代码示例来源:origin: com.hp.hpl.jena/arq
@Override
public int hashCode()
{
return var.hashCode()^expr.hashCode();
}
代码示例来源:origin: com.hp.hpl.jena/arq
@Override
public int hashCode()
{
int x = aggregator.hashCode() ;
if ( var != null )
x ^= var.hashCode() ;
return x ;
}
代码示例来源:origin: com.hp.hpl.jena/arq
@Override
public int hashCode()
{
return var.hashCode()^expr.hashCode();
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
@Override
public int hashCode()
{
int x = aggregator.hashCode() ;
if ( var != null )
x ^= var.hashCode() ;
return x ;
}
代码示例来源:origin: com.hp.hpl.jena/arq
public static int hashCode(Binding bind)
{
int hash = 0xC0 ;
for ( Iterator<Var> iter = bind.vars() ; iter.hasNext() ; )
{
Var var = iter.next() ;
Node node = bind.get(var) ;
hash ^= var.hashCode() ;
hash ^= node.hashCode() ;
}
return hash ;
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
public static int hashCode(Binding bind)
{
int hash = 0xC0 ;
for ( Iterator<Var> iter = bind.vars() ; iter.hasNext() ; )
{
Var var = iter.next() ;
Node node = bind.get(var) ;
hash ^= var.hashCode() ;
hash ^= node.hashCode() ;
}
return hash ;
}
代码示例来源:origin: com.hp.hpl.jena/arq
private int calcHashCode()
{
int _hashCode = 0 ;
for ( Iterator<Var> iter = vars() ; iter.hasNext() ; )
{
Var var = iter.next() ;
Node n = get(var) ;
if ( n == null )
continue ;
// Independent of variable order.
_hashCode = _hashCode^n.hashCode()^var.hashCode() ;
varSize ++ ;
}
return _hashCode ;
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
private int calcHashCode()
{
int _hashCode = 0 ;
for ( Iterator<Var> iter = vars() ; iter.hasNext() ; )
{
Var var = iter.next() ;
Node n = get(var) ;
if ( n == null )
continue ;
// Independent of variable order.
_hashCode = _hashCode^n.hashCode()^var.hashCode() ;
varSize ++ ;
}
return _hashCode ;
}
代码示例来源:origin: com.hp.hpl.jena/arq
private static int calcHashCode(Binding binding)
{
int calcHashCode = EmptyBindingHashCode ;
for ( Iterator<Var> iter = binding.vars() ; iter.hasNext() ; )
{
Var var = iter.next() ;
Node n = binding.get(var) ;
if ( n == null )
continue ;
// Must be independent of variable order.
calcHashCode = calcHashCode^n.hashCode()^var.hashCode() ;
//binding.add(var, n) ;
}
return calcHashCode ;
}
}
内容来源于网络,如有侵权,请联系作者删除!