Storages refactoring

This commit is contained in:
sanex3339
2016-11-22 19:06:31 +03:00
parent f58d8c83d1
commit 742149a70e
13 changed files with 223 additions and 383 deletions
@@ -0,0 +1,20 @@
import { ArrayStorage } from '../ArrayStorage';
import { Utils } from '../../Utils';
export class StringArrayStorage extends ArrayStorage <string> {
/**
* @param rotationValue
*/
public rotateArray (rotationValue: number): void {
this.storage = Utils.arrayRotate(this.storage, rotationValue);
}
/**
* @returns {string}
*/
public toString (): string {
return this.storage.map((value: string) => {
return `'${value}'`;
}).toString();
}
}