예제 #1
0
        public override int GetHashCode()
        {
            if (changed)
            {
                //if the instance was modified, hashCode also will be changed, it may cause inconsistency.
                ILog logger = LogManager.GetLogger(typeof(PdfReader));
                logger.Warn(iText.IO.LogMessageConstant.CALCULATE_HASHCODE_FOR_MODIFIED_PDFNUMBER);
                changed = false;
            }
            long hash = JavaUtil.DoubleToLongBits(value);

            return((int)(hash ^ ((long)(((ulong)hash) >> 32))));
        }