java.security.AccessControlContext.hashCode()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(47)

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

AccessControlContext.hashCode介绍

[英]Returns the hash code value for this context. The hash code is computed by exclusive or-ing the hash code of all the protection domains in the context together.
[中]返回此上下文的哈希代码值。哈希代码是通过将上下文中所有保护域的哈希代码一起进行异或运算来计算的。

代码示例

代码示例来源:origin: wildfly/wildfly

protected int calculateHashCode() {
    return HashMath.multiHashOrdered(HashMath.multiHashOrdered(super.calculateHashCode(), getClass().hashCode()), context.hashCode());
  }
}

代码示例来源:origin: au.net.zeus.jgdms/jgdms-platform

public SecurityContextImpl(AccessControlContext acc) {
  this.acc = acc;
  int hash = 7;
  hash = 23 * hash + (this.acc != null ? this.acc.hashCode() : 0);
  hashCode = hash;
}

代码示例来源:origin: au.net.zeus.jgdms/jgdms-platform

public int compareTo(ComparableRunnableImpl o) {
  int result = ((Comparable) runnable).compareTo(o.runnable);
  if (result != 0) return result;
  int myHash = context.hashCode();
  int otherHash = o.context.hashCode();
  return myHash == otherHash ? 0 : (myHash < otherHash ? -1 : 0);
}

代码示例来源:origin: au.net.zeus.jgdms/jgdms-platform

@Override
public int hashCode() {
  int hash = 5;
  hash = hash << runnable.hashCode() - hash;
  return hash << context.hashCode() - hash;
}

代码示例来源:origin: au.net.zeus.jgdms/jgdms-platform

@Override
public int hashCode() {
  int hash = 5;
  hash = hash << c.hashCode() - hash;
  return hash << context.hashCode() - hash;
}

代码示例来源:origin: com.fitbur.external/external-bytebuddy

@Override
public int hashCode() {
  int result = protectionDomain != null ? protectionDomain.hashCode() : 0;
  result = 31 * result + packageDefinitionStrategy.hashCode();
  result = 31 * result + accessControlContext.hashCode();
  result = 31 * result + (forbidExisting ? 1 : 0);
  return result;
}

代码示例来源:origin: com.fitbur.external/external-bytebuddy

@Override
public int hashCode() {
  int result = classLoader.hashCode();
  result = 31 * result + (protectionDomain != null ? protectionDomain.hashCode() : 0);
  result = 31 * result + (forbidExisting ? 1 : 0);
  result = 31 * result + packageDefinitionStrategy.hashCode();
  result = 31 * result + accessControlContext.hashCode();
  return result;
}

代码示例来源:origin: com.fitbur.external/external-bytebuddy

@Override
public int hashCode() {
  int result = bootstrapInjectionStrategy.hashCode();
  result = 31 * result + (protectionDomain != null ? protectionDomain.hashCode() : 0);
  result = 31 * result + (classLoader != null ? classLoader.hashCode() : 0);
  result = 31 * result + accessControlContext.hashCode();
  return result;
}

代码示例来源:origin: com.fitbur.external/external-bytebuddy

@Override
public int hashCode() {
  int result = parent.hashCode();
  result = 31 * result + typeDefinitions.hashCode();
  result = 31 * result + (protectionDomain != null ? protectionDomain.hashCode() : 0);
  result = 31 * result + accessControlContext.hashCode();
  result = 31 * result + persistenceHandler.hashCode();
  result = 31 * result + packageDefinitionStrategy.hashCode();
  result = 31 * result + (childFirst ? 1 : 0);
  return result;
}

代码示例来源:origin: com.fitbur.external/external-bytebuddy

@Override
public int hashCode() {
  int result = protectionDomain != null ? protectionDomain.hashCode() : 0;
  result = 31 * result + accessControlContext.hashCode();
  result = 31 * result + persistenceHandler.hashCode();
  result = 31 * result + packageDefinitionStrategy.hashCode();
  result = 31 * result + (childFirst ? 1 : 0);
  result = 31 * result + (forbidExisting ? 1 : 0);
  return result;
}

代码示例来源:origin: com.fitbur.external/external-bytebuddy

@Override
public int hashCode() {
  int result = super.hashCode();
  result = 31 * result + accessControlContext.hashCode();
  return result;
}

代码示例来源:origin: com.fitbur.external/external-bytebuddy

@Override
public int hashCode() {
  int result = byteBuddy.hashCode();
  result = 31 * result + binaryLocator.hashCode();
  result = 31 * result + typeStrategy.hashCode();
  result = 31 * result + initializationStrategy.hashCode();
  result = 31 * result + listener.hashCode();
  result = 31 * result + nativeMethodStrategy.hashCode();
  result = 31 * result + bootstrapInjectionStrategy.hashCode();
  result = 31 * result + accessControlContext.hashCode();
  result = 31 * result + ignoredTypes.hashCode();
  result = 31 * result + transformation.hashCode();
  return result;
}

代码示例来源:origin: com.fitbur.external/external-bytebuddy

@Override
public int hashCode() {
  int result = byteBuddy.hashCode();
  result = 31 * result + binaryLocator.hashCode();
  result = 31 * result + listener.hashCode();
  result = 31 * result + typeStrategy.hashCode();
  result = 31 * result + nativeMethodStrategy.hashCode();
  result = 31 * result + accessControlContext.hashCode();
  result = 31 * result + initializationStrategy.hashCode();
  result = 31 * result + redefinitionStrategy.hashCode();
  result = 31 * result + bootstrapInjectionStrategy.hashCode();
  result = 31 * result + lambdaInstrumentationStrategy.hashCode();
  result = 31 * result + ignoredTypes.hashCode();
  result = 31 * result + transformation.hashCode();
  return result;
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron-sasl

protected int calculateHashCode() {
    return HashMath.multiHashOrdered(HashMath.multiHashOrdered(super.calculateHashCode(), getClass().hashCode()), context.hashCode());
  }
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron

protected int calculateHashCode() {
    return HashMath.multiHashOrdered(HashMath.multiHashOrdered(super.calculateHashCode(), getClass().hashCode()), context.hashCode());
  }
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

protected int calculateHashCode() {
    return HashMath.multiHashOrdered(HashMath.multiHashOrdered(super.calculateHashCode(), getClass().hashCode()), context.hashCode());
  }
}

相关文章