export default class DataCharacter { private value : number ; private checksumPortion : number ; public constructor ( value , checksumPortion ) { this . value = value ; this . checksumPortion = checksumPortion ; } public getValue ( ) { return this . value ; } public getChecksumPortion ( ) { return this . checksumPortion ; } public toString ( ) { return this . value + '(' + this . checksumPortion + ')' ; } public equals ( o ) { if ( ! ( o instanceof DataCharacter ) ) { return false ; } const that = < DataCharacter > o ; return this . value === that . value && this . checksumPortion === that . checksumPortion ; } public hashCode ( ) { return this . value ^ this . checksumPortion ; } }