org.eclipse.jface.util.Util.hashCode()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(162)

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

Util.hashCode介绍

[英]Provides a hash code based on the given integer value.
[中]提供基于给定整数值的哈希代码。

代码示例

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface

public int hashCode() {
  return Util.hashCode(value);
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

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

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

@Override
public final int hashCode() {
  if (hashCode == HASH_CODE_NOT_COMPUTED) {
    hashCode = HASH_INITIAL;
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(triggers);
    if (hashCode == HASH_CODE_NOT_COMPUTED) {
      hashCode++;
    }
  }
  return hashCode;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface

@Override
public final int hashCode() {
  if (hashCode == HASH_CODE_NOT_COMPUTED) {
    hashCode = HASH_INITIAL;
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(triggers);
    if (hashCode == HASH_CODE_NOT_COMPUTED) {
      hashCode++;
    }
  }
  return hashCode;
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface

public final int hashCode() {
  if (hashCode == HASH_CODE_NOT_COMPUTED) {
    hashCode = HASH_INITIAL;
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(triggers);
    if (hashCode == HASH_CODE_NOT_COMPUTED) {
      hashCode++;
    }
  }
  return hashCode;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface

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

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface

/**
 * Computes the hash code for this cached binding set. The hash code is
 * based only on the immutable values. This allows the set to be created and
 * checked for in a hashed collection <em>before</em> doing any
 * computation.
 * 
 * @return The hash code for this cached binding set.
 */
public final int hashCode() {
  if (!hashCodeComputed) {
    hashCode = HASH_INITIAL;
    hashCode = hashCode * HASH_FACTOR
        + Util.hashCode(activeContextTree);
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(locales);
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(platforms);
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(schemeIds);
    hashCodeComputed = true;
  }
  return hashCode;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface

/**
 * Computes the hash code for this cached binding set. The hash code is
 * based only on the immutable values. This allows the set to be created and
 * checked for in a hashed collection <em>before</em> doing any
 * computation.
 *
 * @return The hash code for this cached binding set.
 */
@Override
public final int hashCode() {
  if (!hashCodeComputed) {
    hashCode = HASH_INITIAL;
    hashCode = hashCode * HASH_FACTOR
        + Util.hashCode(activeContextTree);
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(locales);
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(platforms);
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(schemeIds);
    hashCodeComputed = true;
  }
  return hashCode;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

/**
 * Computes the hash code for this cached binding set. The hash code is
 * based only on the immutable values. This allows the set to be created and
 * checked for in a hashed collection <em>before</em> doing any
 * computation.
 *
 * @return The hash code for this cached binding set.
 */
@Override
public final int hashCode() {
  if (!hashCodeComputed) {
    hashCode = HASH_INITIAL;
    hashCode = hashCode * HASH_FACTOR
        + Util.hashCode(activeContextTree);
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(locales);
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(platforms);
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(schemeIds);
    hashCodeComputed = true;
  }
  return hashCode;
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface

/**
 * Computes the hash code for this key binding based on all of its
 * attributes.
 * 
 * @return The hash code for this key binding.
 */
public final int hashCode() {
  if (hashCode == HASH_CODE_NOT_COMPUTED) {
    hashCode = HASH_INITIAL;
    hashCode = hashCode * HASH_FACTOR
        + Util.hashCode(getParameterizedCommand());
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(getContextId());
    hashCode = hashCode * HASH_FACTOR
        + Util.hashCode(getTriggerSequence());
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(getLocale());
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(getPlatform());
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(getSchemeId());
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(getType());
    if (hashCode == HASH_CODE_NOT_COMPUTED) {
      hashCode++;
    }
  }
  return hashCode;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

/**
 * Computes the hash code for this key binding based on all of its
 * attributes.
 *
 * @return The hash code for this key binding.
 */
@Override
public final int hashCode() {
  if (hashCode == HASH_CODE_NOT_COMPUTED) {
    hashCode = HASH_INITIAL;
    hashCode = hashCode * HASH_FACTOR
        + Util.hashCode(getParameterizedCommand());
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(getContextId());
    hashCode = hashCode * HASH_FACTOR
        + Util.hashCode(getTriggerSequence());
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(getLocale());
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(getPlatform());
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(getSchemeId());
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(getType());
    if (hashCode == HASH_CODE_NOT_COMPUTED) {
      hashCode++;
    }
  }
  return hashCode;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface

/**
 * Computes the hash code for this key binding based on all of its
 * attributes.
 *
 * @return The hash code for this key binding.
 */
@Override
public final int hashCode() {
  if (hashCode == HASH_CODE_NOT_COMPUTED) {
    hashCode = HASH_INITIAL;
    hashCode = hashCode * HASH_FACTOR
        + Util.hashCode(getParameterizedCommand());
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(getContextId());
    hashCode = hashCode * HASH_FACTOR
        + Util.hashCode(getTriggerSequence());
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(getLocale());
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(getPlatform());
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(getSchemeId());
    hashCode = hashCode * HASH_FACTOR + Util.hashCode(getType());
    if (hashCode == HASH_CODE_NOT_COMPUTED) {
      hashCode++;
    }
  }
  return hashCode;
}

相关文章