import { Comparer } from "./Comparer" ; import { StoredComparer } from "./StoredComparer" ; /**
 * Converts a comparer to a stored comparer.
 */ export class ComparerToStoredComparer < T > implements StoredComparer < T > { param comparer param storedValue constructor ( private readonly comparer , private readonly storedValue ) { } inheritdoc compareTo ( value ) { return this . comparer . compareTo ( this . storedValue , value ) ; } }