/** * Generate the hash code for this Id. Cache the type's generated hash code * so that it doesn't have to be generated each time. */ public int hashCode() { if (_typeHash == 0) { Integer typeHashInt = (Integer) _typeCache.get(type); if (typeHashInt == null) { Class base = type; Class superclass = base.getSuperclass(); while (superclass != null && superclass != Object.class) { base = base.getSuperclass(); superclass = base.getSuperclass(); } _typeHash = base.getName().hashCode(); _typeCache.put(type, Integer.valueOf(_typeHash)); } else { _typeHash = typeHashInt.intValue(); } } return _typeHash ^ idHash(); }
/** * Generate the hash code for this Id. Cache the type's generated hash code * so that it doesn't have to be generated each time. */ public int hashCode() { if (_typeHash == 0) { Integer typeHashInt = (Integer) _typeCache.get(type); if (typeHashInt == null) { Class base = type; Class superclass = base.getSuperclass(); while (superclass != null && superclass != Object.class) { base = base.getSuperclass(); superclass = base.getSuperclass(); } _typeHash = base.getName().hashCode(); _typeCache.put(type, Integer.valueOf(_typeHash)); } else { _typeHash = typeHashInt.intValue(); } } return _typeHash ^ idHash(); }
/** * Generate the hash code for this Id. Cache the type's generated hash code * so that it doesn't have to be generated each time. */ public int hashCode() { if (_typeHash == 0) { Integer typeHashInt = (Integer) _typeCache.get(type); if (typeHashInt == null) { Class base = type; Class superclass = base.getSuperclass(); while (superclass != null && superclass != Object.class) { base = base.getSuperclass(); superclass = base.getSuperclass(); } _typeHash = base.getName().hashCode(); _typeCache.put(type, Integer.valueOf(_typeHash)); } else { _typeHash = typeHashInt.intValue(); } } return _typeHash ^ idHash(); }
/** * Generate the hash code for this Id. Cache the type's generated hash code * so that it doesn't have to be generated each time. */ public int hashCode() { if (_typeHash == 0) { Integer typeHashInt = (Integer) _typeCache.get(type); if (typeHashInt == null) { Class base = type; Class superclass = base.getSuperclass(); while (superclass != null && superclass != Object.class) { base = base.getSuperclass(); superclass = base.getSuperclass(); } _typeHash = base.getName().hashCode(); _typeCache.put(type, Integer.valueOf(_typeHash)); } else { _typeHash = typeHashInt.intValue(); } } return _typeHash ^ idHash(); }
/** * Generate the hashcode for this Id. Cache the type's generated hashcode * so that it doesn't have to be generated each time. */ public int hashCode() { if (_typeHash == 0) { Integer typeHashInt = (Integer) _typeCache.get(type); if (typeHashInt == null) { Class base = type; Class superclass = base.getSuperclass(); while (superclass != null && superclass != Object.class) { base = base.getSuperclass(); superclass = base.getSuperclass(); } _typeHash = base.hashCode(); _typeCache.put(type, new Integer(_typeHash)); } else { _typeHash = typeHashInt.intValue(); } } return _typeHash ^ idHash(); }