From ca1f5275b4aaf39171abfaf4d8bdebc138ba1b09 Mon Sep 17 00:00:00 2001 From: "francois.grand" <francois.grand@irstea.fr> Date: Tue, 16 Jan 2018 09:58:16 +0100 Subject: [PATCH] =?UTF-8?q?classe=20Pair=20:=20r=C3=A9cup=C3=A9ration=20de?= =?UTF-8?q?=20la=20m=C3=A9thode=20toString()=20(d=C3=A9plac=C3=A9e)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 1 + src/util/interval.ts | 4 ---- src/util/pair.ts | 4 ++++ 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index a7f8a2e1..059f59cb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,6 +17,7 @@ export * from './util/numericalstring'; export * from './util/message'; export * from './util/log'; export * from './util/result'; +export * from './util/pair'; export * from './util/interval'; export * from './pab/pab_dimension'; export * from './pab/pab_puissance'; diff --git a/src/util/interval.ts b/src/util/interval.ts index 753c791a..756dc2cb 100644 --- a/src/util/interval.ts +++ b/src/util/interval.ts @@ -37,8 +37,4 @@ export class Interval extends Pair { setBounds(i: Pair) { this.setPair(i); } - - toString(): string { - return "[" + this.min + "," + this.max + "]"; - } } diff --git a/src/util/pair.ts b/src/util/pair.ts index 9a421b4c..ab9c56b1 100644 --- a/src/util/pair.ts +++ b/src/util/pair.ts @@ -42,4 +42,8 @@ export class Pair { intervalHasValue(v: number) { return this.min <= v && v <= this.max; } + + toString(): string { + return "[" + this.min + "," + this.max + "]"; + } } -- GitLab