Click or drag to resize

HashCodeComparerT Class

When the type of object being compared is a simple type like a string and you don't care about the sort order, then this comparator is what you want to use. It is similar to using a hash based collection but with less overhead (more compact) This kind of comparator especially shines when you create the BTreeSet/BTreeMap using a comparisonByteArray size of 4
Inheritance Hierarchy
SystemObject
  VelocityDbOptimizedPersistable
    VelocityDb.Collection.ComparerVelocityDbComparerT
      VelocityDb.Collection.ComparerHashCodeComparerT

Namespace:  VelocityDb.Collection.Comparer
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
[SerializableAttribute]
public class HashCodeComparer<T> : VelocityDbComparer<T>
where T : IComparable

Type Parameters

T
The type of object to compare which must implement IComparable

The HashCodeComparerT type exposes the following members.

Constructors
  NameDescription
Public methodHashCodeComparerT
Initializes a new instance of the HashCodeComparerT class
Top
Methods
Extension Methods
  NameDescription
Public Extension MethodToStringDetails(SessionBase, Boolean)Overloaded.
Object details as a string
(Defined by Utilities.)
Public Extension MethodToStringDetails(Schema, TypeVersion, Boolean)Overloaded.
Currently only used by Database Manager
(Defined by Utilities.)
Top
See Also