@versatiledatakit/shared
Version:
Versatile Data Kit Shared library enables reusability of shared features like: NgRx Redux, Error Handlers, Utils, Generic Components, etc.
59 lines (58 loc) • 1.15 kB
TypeScript
import { Comparable } from '../../interfaces';
/**
* ** Comparable.
*/
export declare class ComparableImpl<T = unknown> implements Comparable<T> {
/**
* @inheritDoc
*/
readonly value: T;
/**
* ** Constructor.
*/
constructor(value: T);
/**
* ** Factory method.
*/
static of(value: any): ComparableImpl;
/**
* @inheritDoc
*/
compare(comparable: Comparable): number;
/**
* @inheritDoc
*/
isNil(): boolean;
/**
* @inheritDoc
*/
notNil(): boolean;
/**
* @inheritDoc
*/
like(comparable: Comparable): boolean;
/**
* @inheritDoc
*/
equal(comparable: Comparable): boolean;
/**
* @inheritDoc
*/
notEqual(comparable: Comparable): boolean;
/**
* @inheritDoc
*/
lessThan(comparable: Comparable): boolean;
/**
* @inheritDoc
*/
lessThanInclusive(comparable: Comparable): boolean;
/**
* @inheritDoc
*/
greaterThan(comparable: Comparable): boolean;
/**
* @inheritDoc
*/
greaterThanInclusive(comparable: Comparable): boolean;
}