本文整理匯總了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);
}