public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ NullableId.GetHashCode();
         hashCode = (hashCode * 397) ^ Byte.GetHashCode();
         hashCode = (hashCode * 397) ^ Short.GetHashCode();
         hashCode = (hashCode * 397) ^ Int;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ UShort.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)UInt;
         hashCode = (hashCode * 397) ^ ULong.GetHashCode();
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ Decimal.GetHashCode();
         hashCode = (hashCode * 397) ^ (String != null ? String.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ TimeSpan.GetHashCode();
         hashCode = (hashCode * 397) ^ Guid.GetHashCode();
         hashCode = (hashCode * 397) ^ NullableDateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ NullableTimeSpan.GetHashCode();
         hashCode = (hashCode * 397) ^ NullableGuid.GetHashCode();
         return(hashCode);
     }
 }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Use.Length != 0)
            {
                hash ^= Use.GetHashCode();
            }
            if (Short.Length != 0)
            {
                hash ^= Short.GetHashCode();
            }
            if (Long.Length != 0)
            {
                hash ^= Long.GetHashCode();
            }
            if (Example.Length != 0)
            {
                hash ^= Example.GetHashCode();
            }
            if (Deprecated.Length != 0)
            {
                hash ^= Deprecated.GetHashCode();
            }
            if (Hidden != false)
            {
                hash ^= Hidden.GetHashCode();
            }
            return(hash);
        }
Пример #3
0
        public override int GetHashCode()
        {
            var hashCode = 291051517;

            hashCode = hashCode * -1521134295 + Int.GetHashCode();
            hashCode = hashCode * -1521134295 + Long.GetHashCode();
            hashCode = hashCode * -1521134295 + Short.GetHashCode();
            hashCode = hashCode * -1521134295 + UInt.GetHashCode();
            hashCode = hashCode * -1521134295 + ULong.GetHashCode();
            hashCode = hashCode * -1521134295 + UShort.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <int?> .Default.GetHashCode(NullableInt);

            hashCode = hashCode * -1521134295 + Byte.GetHashCode();
            hashCode = hashCode * -1521134295 + SByte.GetHashCode();
            hashCode = hashCode * -1521134295 + Bool.GetHashCode();
            hashCode = hashCode * -1521134295 + Float.GetHashCode();
            hashCode = hashCode * -1521134295 + Double.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <byte[]> .Default.GetHashCode(ByteArray);

            hashCode = hashCode * -1521134295 + Decimal.GetHashCode();
            hashCode = hashCode * -1521134295 + DateTime.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(String);

            return(hashCode);
        }
Пример #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ NullableId.GetHashCode();
         hashCode = (hashCode * 397) ^ Byte.GetHashCode();
         hashCode = (hashCode * 397) ^ Short.GetHashCode();
         hashCode = (hashCode * 397) ^ Int;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ UShort.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)UInt;
         hashCode = (hashCode * 397) ^ ULong.GetHashCode();
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ Decimal.GetHashCode();
         hashCode = (hashCode * 397) ^ (String != null ? String.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ TimeSpan.GetHashCode();
         hashCode = (hashCode * 397) ^ DateTimeOffset.GetHashCode();
         hashCode = (hashCode * 397) ^ Guid.GetHashCode();
         hashCode = (hashCode * 397) ^ Char.GetHashCode();
         hashCode = (hashCode * 397) ^ NullableDateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ NullableTimeSpan.GetHashCode();
         hashCode = (hashCode * 397) ^ (StringList != null ? StringList.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StringArray != null ? StringArray.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StringMap != null ? StringMap.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (IntStringMap != null ? IntStringMap.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SubType != null ? SubType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (GenericType != null ? GenericType.GetHashCode() : 0);
         return(hashCode);
     }
 }
Пример #5
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Sbyte.GetHashCode();
         hashCode = (hashCode * 397) ^ Short.GetHashCode();
         hashCode = (hashCode * 397) ^ Int;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ Byte.GetHashCode();
         hashCode = (hashCode * 397) ^ UShort.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)UInt;
         hashCode = (hashCode * 397) ^ ULong.GetHashCode();
         hashCode = (hashCode * 397) ^ Char.GetHashCode();
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ Decimal.GetHashCode();
         hashCode = (hashCode * 397) ^ Boolean.GetHashCode();
         hashCode = (hashCode * 397) ^ (String != null ? String.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ (Exception != null ? Exception.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Enum;
         hashCode = (hashCode * 397) ^ Struct.GetHashCode();
         return(hashCode);
     }
 }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @VisibleForTesting int hashAndMask(long element)
        internal virtual int HashAndMask(long element)
        {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final long h = org.eclipse.collections.impl.SpreadFunctions.longSpreadOne(element);
            long h = SpreadFunctions.longSpreadOne(element);

            return(Long.GetHashCode(h) & (Capacity - 1));
        }
Пример #7
0
 public override int GetHashCode()
 {
     if (_relationships.Length == 0)
     {
         return(Long.GetHashCode(_nodes[0]));
     }
     else
     {
         return(Arrays.GetHashCode(_relationships));
     }
 }
Пример #8
0
            public override int ComputeHash()
            {
                int  hashCode = 1;
                long current  = Start;
                int  size     = size();

                for (int i = 0; i < size; i++, current += Step)
                {
                    hashCode = 31 * hashCode + Long.GetHashCode(current);
                }
                return(hashCode);
            }
Пример #9
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Int;
         result = (result * 397) ^ Long.GetHashCode();
         result = (result * 397) ^ Float.GetHashCode();
         result = (result * 397) ^ Double.GetHashCode();
         result = (result * 397) ^ Decimal.GetHashCode();
         return(result);
     }
 }
        public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Lat?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Long?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Title?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Type?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Icon?.GetHashCode() ?? 0);
            return(hashCode);
        }
Пример #11
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ID.GetHashCode();
         hashCode = (hashCode * 397) ^ (String != null ? String.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Int;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ Bool.GetHashCode();
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         return(hashCode);
     }
 }
Пример #12
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Byte.GetHashCode();
         hashCode = (hashCode * 397) ^ SByte.GetHashCode();
         hashCode = (hashCode * 397) ^ Short.GetHashCode();
         hashCode = (hashCode * 397) ^ UShort.GetHashCode();
         hashCode = (hashCode * 397) ^ Int.GetHashCode();
         hashCode = (hashCode * 397) ^ UInt.GetHashCode();
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ ULong.GetHashCode();
         return(hashCode);
     }
 }
Пример #13
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)Byte;
         hashCode = (hashCode * 397) ^ (int)SByte;
         hashCode = (hashCode * 397) ^ (int)Short;
         hashCode = (hashCode * 397) ^ (int)UShort;
         hashCode = (hashCode * 397) ^ (int)Int;
         hashCode = (hashCode * 397) ^ (int)UInt;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ ULong.GetHashCode();
         return(hashCode);
     }
 }
Пример #14
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Byte != null ? Byte.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SByte != null ? SByte.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Short != null ? Short.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (UShort != null ? UShort.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Int != null ? Int.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (UInt != null ? UInt.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Long != null ? Long.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ULong != null ? ULong.GetHashCode() : 0);
         return(hashCode);
     }
 }
Пример #15
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = ID.GetHashCode();
         hashCode = (hashCode * 397) ^ (StringDefault != null ? StringDefault.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (String != null ? String.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Int;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ Bool.GetHashCode();
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ (IntArray != null ? IntArray.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (IntIList != null ? IntIList.GetHashCode() : 0);
         return(hashCode);
     }
 }
Пример #16
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Byte.GetHashCode();
         hashCode = (hashCode * 397) ^ Short.GetHashCode();
         hashCode = (hashCode * 397) ^ ArrayReaderTestId;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ Decimal.GetHashCode();
         hashCode = (hashCode * 397) ^ Bool.GetHashCode();
         hashCode = (hashCode * 397) ^ String.GetHashCode();
         hashCode = (hashCode * 397) ^ Guid.GetHashCode();
         hashCode = (hashCode * 397) ^ DateTime.GetHashCode();
         return(hashCode);
     }
 }
Пример #17
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Sbyte.GetHashCode();
         hashCode = (hashCode * 397) ^ Short.GetHashCode();
         hashCode = (hashCode * 397) ^ Int;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ Byte.GetHashCode();
         hashCode = (hashCode * 397) ^ UShort.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)UInt;
         hashCode = (hashCode * 397) ^ ULong.GetHashCode();
         hashCode = (hashCode * 397) ^ Char.GetHashCode();
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ Decimal.GetHashCode();
         hashCode = (hashCode * 397) ^ Boolean.GetHashCode();
         return(hashCode);
     }
 }
Пример #18
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ NullableId.GetHashCode();
         hashCode = (hashCode * 397) ^ Byte.GetHashCode();
         hashCode = (hashCode * 397) ^ Short.GetHashCode();
         hashCode = (hashCode * 397) ^ Int;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ UShort.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)UInt;
         hashCode = (hashCode * 397) ^ ULong.GetHashCode();
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ Decimal.GetHashCode();
         hashCode = (hashCode * 397) ^ (String != null ? String.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ TimeSpan.GetHashCode();
         hashCode = (hashCode * 397) ^ DateTimeOffset.GetHashCode();
         hashCode = (hashCode * 397) ^ Guid.GetHashCode();
         hashCode = (hashCode * 397) ^ Bool.GetHashCode();
         hashCode = (hashCode * 397) ^ Char.GetHashCode();
         hashCode = (hashCode * 397) ^ NullableDateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ NullableTimeSpan.GetHashCode();
         hashCode = (hashCode * 397) ^ (ByteArray != null ? ByteArray.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CharArray != null ? CharArray.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StringArray != null ? StringArray.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (IntArray != null ? IntArray.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (LongArray != null ? LongArray.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StringList != null ? StringList.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StringMap != null ? StringMap.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (IntStringMap != null ? IntStringMap.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SubType != null ? SubType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SubTypes != null ? SubTypes.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CustomText != null ? CustomText.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MaxText != null ? MaxText.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CustomDecimal.GetHashCode();
         return(hashCode);
     }
 }
Пример #19
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Byte.GetHashCode();
         hashCode = (hashCode * 397) ^ SByte.GetHashCode();
         hashCode = (hashCode * 397) ^ Short.GetHashCode();
         hashCode = (hashCode * 397) ^ UShort.GetHashCode();
         hashCode = (hashCode * 397) ^ Int;
         hashCode = (hashCode * 397) ^ (int)UInt;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ ULong.GetHashCode();
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ Decimal.GetHashCode();
         hashCode = (hashCode * 397) ^ Guid.GetHashCode();
         hashCode = (hashCode * 397) ^ String.GetHashCode();
         hashCode = (hashCode * 397) ^ Key.GetHashCode();
         return(hashCode);
     }
 }
Пример #20
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Boolean.GetHashCode();
         result = (result * 397) ^ Byte.GetHashCode();
         result = (result * 397) ^ Char.GetHashCode();
         result = (result * 397) ^ DateTime.GetHashCode();
         result = (result * 397) ^ DateTimeOffset.GetHashCode();
         result = (result * 397) ^ Decimal.GetHashCode();
         result = (result * 397) ^ Double.GetHashCode();
         result = (result * 397) ^ Float.GetHashCode();
         result = (result * 397) ^ Int;
         result = (result * 397) ^ Guid.GetHashCode();
         result = (result * 397) ^ Long.GetHashCode();
         result = (result * 397) ^ (String != null ? String.GetHashCode() : 0);
         result = (result * 397) ^ TimeSpan.GetHashCode();
         result = (result * 397) ^ (Uri != null ? Uri.GetHashCode() : 0);
         return(result);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Bool.GetHashCode();
         hashCode = (hashCode * 397) ^ Byte.GetHashCode();
         hashCode = (hashCode * 397) ^ Character.GetHashCode();
         hashCode = (hashCode * 397) ^ Decimal.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Int;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ SByte.GetHashCode();
         hashCode = (hashCode * 397) ^ Short.GetHashCode();
         hashCode = (hashCode * 397) ^ (String != null ? String.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)UInt;
         hashCode = (hashCode * 397) ^ UShort.GetHashCode();
         hashCode = (hashCode * 397) ^ ULong.GetHashCode();
         return(hashCode);
     }
 }
Пример #22
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = _int1;
         result = (result * 397) ^ Bool.GetHashCode();
         result = (result * 397) ^ (NullableBool.HasValue ? NullableBool.Value.GetHashCode() : 0);
         result = (result * 397) ^ Int;
         result = (result * 397) ^ Uint.GetHashCode();
         result = (result * 397) ^ (NullableInt.HasValue ? NullableInt.Value : 0);
         result = (result * 397) ^ (NullableUint.HasValue ? NullableUint.Value.GetHashCode() : 0);
         result = (result * 397) ^ Byte.GetHashCode();
         result = (result * 397) ^ Sbyte.GetHashCode();
         result = (result * 397) ^ (NullableByte.HasValue ? NullableByte.Value.GetHashCode() : 0);
         result = (result * 397) ^ (NullableSbyte.HasValue ? NullableSbyte.Value.GetHashCode() : 0);
         result = (result * 397) ^ Short.GetHashCode();
         result = (result * 397) ^ Ushort.GetHashCode();
         result = (result * 397) ^ (NullableShort.HasValue ? NullableShort.Value.GetHashCode() : 0);
         result = (result * 397) ^ (NullableUshort.HasValue ? NullableUshort.Value.GetHashCode() : 0);
         result = (result * 397) ^ Long.GetHashCode();
         result = (result * 397) ^ Ulong.GetHashCode();
         result = (result * 397) ^ (NullableLong.HasValue ? NullableLong.Value.GetHashCode() : 0);
         result = (result * 397) ^ (NullableUlong.HasValue ? NullableUlong.Value.GetHashCode() : 0);
         result = (result * 397) ^ Char.GetHashCode();
         result = (result * 397) ^ (NullableChar.HasValue ? NullableChar.Value.GetHashCode() : 0);
         result = (result * 397) ^ Float.GetHashCode();
         result = (result * 397) ^ (NullableFloat.HasValue ? NullableFloat.Value.GetHashCode() : 0);
         result = (result * 397) ^ Double.GetHashCode();
         result = (result * 397) ^ (NullableDouble.HasValue ? NullableDouble.Value.GetHashCode() : 0);
         result = (result * 397) ^ Decimal.GetHashCode();
         result = (result * 397) ^ (NullableDecimal.HasValue ? NullableDecimal.Value.GetHashCode() : 0);
         result = (result * 397) ^ (String != null ? String.GetHashCode() : 0);
         result = (result * 397) ^ (Object != null ? Object.GetHashCode() : 0);
         result = (result * 397) ^ TimeSpan.GetHashCode();
         result = (result * 397) ^ (NullableTimeSpan.HasValue ? NullableTimeSpan.Value.GetHashCode() : 0);
         result = (result * 397) ^ DateTime.GetHashCode();
         result = (result * 397) ^ (NullableDateTime.HasValue ? NullableDateTime.Value.GetHashCode() : 0);
         return(result);
     }
 }
Пример #23
0
 protected internal override int ComputeHash()
 {
     return(Long.GetHashCode(_value.toEpochDay()));
 }
Пример #24
0
 public override int GetHashCode()
 {
     return(Long.GetHashCode());
 }
Пример #25
0
 public override int ComputeHash()
 {
     return(Long.GetHashCode(Id()));
 }