mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
d1ea1f4c7f
Update the license headers throughout the repository to reference Google LLC rather than Google Inc, for the required license headers. PR Close #37205
32 lines
820 B
TypeScript
32 lines
820 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
import {MeasureValues} from './measure_values';
|
|
|
|
/**
|
|
* A Validator calculates a valid sample out of the complete sample.
|
|
* A valid sample is a sample that represents the population that should be observed
|
|
* in the correct way.
|
|
*/
|
|
export abstract class Validator {
|
|
/**
|
|
* Calculates a valid sample out of the complete sample
|
|
*/
|
|
validate(completeSample: MeasureValues[]): MeasureValues[]|null {
|
|
throw new Error('NYI');
|
|
}
|
|
|
|
/**
|
|
* Returns a Map that describes the properties of the validator
|
|
* (e.g. sample size, ...)
|
|
*/
|
|
describe(): {[key: string]: any} {
|
|
throw new Error('NYI');
|
|
}
|
|
}
|