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:
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
-
x The first object to compare. y The second object to compare.
- Returns
- The comparison of x and 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
-
x The first object to compare. y The 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
|
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