Files
esengine/source/src/Utils/Pair.ts

20 lines
394 B
TypeScript
Raw Normal View History

/**
* DTO
*/
class Pair<T> {
public first: T;
public second: T;
constructor(first: T, second: T){
this.first = first;
this.second = second;
}
public clear(){
this.first = this.second = null;
}
public equals(other: Pair<T>){
return this.first == other.first && this.second == other.second;
}
}