本文整理汇总了Java中net.meisen.general.genmisc.types.Objects.generateHashCode方法的典型用法代码示例。如果您正苦于以下问题:Java Objects.generateHashCode方法的具体用法?Java Objects.generateHashCode怎么用?Java Objects.generateHashCode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.meisen.general.genmisc.types.Objects
的用法示例。
在下文中一共展示了Objects.generateHashCode方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: hashCode
import net.meisen.general.genmisc.types.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
if (hashCode == null) {
hashCode = Objects.generateHashCode(13, 97, getId(), getModelId());
}
return hashCode.intValue();
}
示例2: generateHashCode
import net.meisen.general.genmisc.types.Objects; //导入方法依赖的package包/类
/**
* Generates a hashCode for different objects based on their hashCode
* implementation
*
* @param objects the objects to generate one hashCode for
* @param starter the starter to vary among different hashCodes
* @param multiplier the multiplier to vary among different hashCodes
* @return a hashCode
* @see Objects#generateHashCode(int, int, Object...)
*/
public static int generateHashCode(final Collection<?> objects,
final int starter, final int multiplier) {
if (objects == null) {
return 0;
} else {
return Objects.generateHashCode(starter, multiplier,
objects.toArray());
}
}
示例3: hashCode
import net.meisen.general.genmisc.types.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
return Objects.generateHashCode(1, 1, values);
}
示例4: hashCode
import net.meisen.general.genmisc.types.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
return Objects.generateHashCode(3, 17, new Object[] { id, group });
}
示例5: hashCode
import net.meisen.general.genmisc.types.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
return Objects.generateHashCode(7, 13, (Object[]) items);
}
示例6: hashCode
import net.meisen.general.genmisc.types.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
return Objects.generateHashCode(7, 23, getPermission(), getModelId());
}
示例7: hashCode
import net.meisen.general.genmisc.types.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
return Objects.generateHashCode(23, 7, getDimensionId(),
getHierarchyId(), getLevelId());
}
示例8: hashCode
import net.meisen.general.genmisc.types.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
return Objects.generateHashCode(1, 7, getId(), getLabel(),
getMeta());
}
示例9: hashCode
import net.meisen.general.genmisc.types.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
return Objects.generateHashCode(1, 7, name, firstName, age);
}
示例10: hashCode
import net.meisen.general.genmisc.types.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
return Objects.generateHashCode(7, 13, inJarPath, jarPath, fullPath,
type);
}