Summer.Batch.Extra.Sort.Legacy.Comparer.DefaultComparer< T > Class Template Reference

Default implementation of AbstractBytesComparer that relies on an IAccessor<T> to retrieve a value to compare in a byte array. More...

Inheritance diagram for Summer.Batch.Extra.Sort.Legacy.Comparer.DefaultComparer< T >:
Summer.Batch.Extra.Sort.Legacy.Comparer.AbstractBytesComparer

Protected Member Functions

override int DoCompare (byte[] x, byte[] y)
 Compares two byte arrays by comparing a value retrieved on each one. More...
 

Properties

IAccessor< T > Accessor [get, set]
 Accessor to the value to compare. More...
 
- Properties inherited from Summer.Batch.Extra.Sort.Legacy.Comparer.AbstractBytesComparer
bool Ascending [get, set]
 Whether the byte arrays are sorted in ascending order. More...
 

Additional Inherited Members

- Public Member Functions inherited from Summer.Batch.Extra.Sort.Legacy.Comparer.AbstractBytesComparer
int Compare (byte[] x, byte[] y)
 Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. More...
 

Detailed Description

Default implementation of AbstractBytesComparer that relies on an IAccessor<T> to retrieve a value to compare in a byte array.

Template Parameters
T the type of the extracted value
Type Constraints
T :IComparable<T> 

Member Function Documentation

override int Summer.Batch.Extra.Sort.Legacy.Comparer.DefaultComparer< T >.DoCompare ( byte[]  x,
byte[]  y 
)
protectedvirtual

Compares two byte arrays by comparing a value retrieved on each one.

Parameters
xThe first object to compare.
yThe second object to compare.
Returns
The comparison of x and y

Implements Summer.Batch.Extra.Sort.Legacy.Comparer.AbstractBytesComparer.

Property Documentation

Accessor to the value to compare.


The documentation for this class was generated from the following file:
  • Summer.Batch.Extra/Sort/Legacy/Comparer/DefaultComparer.cs