Summer.Batch.Extra.Sort.Legacy.Comparer.AbstractBytesComparer Class Referenceabstract

Base class for implementations of IComparer<T> on byte arrays. More...

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

Public Member Functions

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...
 

Protected Member Functions

abstract int DoCompare (byte[] x, byte[] y)
 Method that does the actual comparison. Implementations should return a value assuming an ascending order, the value will be negated if the actual sorting should be done in descending order. More...
 

Properties

bool Ascending [get, set]
 Whether the byte arrays are sorted in ascending order. More...
 

Detailed Description

Base class for implementations of IComparer<T> on byte arrays.

Member Function Documentation

int Summer.Batch.Extra.Sort.Legacy.Comparer.AbstractBytesComparer.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.

Parameters
xThe first object to compare.
yThe second object to compare.
Returns
The comparison of x and y
abstract int Summer.Batch.Extra.Sort.Legacy.Comparer.AbstractBytesComparer.DoCompare ( byte[]  x,
byte[]  y 
)
protectedpure virtual

Method that does the actual comparison. Implementations should return a value assuming an ascending order, the value will be negated if the actual sorting should be done in descending order.

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

Implemented in Summer.Batch.Extra.Sort.Legacy.Comparer.StringComparer, and Summer.Batch.Extra.Sort.Legacy.Comparer.DefaultComparer< T >.

Property Documentation

bool Summer.Batch.Extra.Sort.Legacy.Comparer.AbstractBytesComparer.Ascending
getset

Whether the byte arrays are sorted in ascending order.


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