package Ġme . m ata ha . mis aki . solutions . ad vent of code . a oc 2 0 1 5 . d 1 6 Ċ Ċ class ĠM emo ir ( private Ġval Ġcompound s : ĠMap < String , ĠInt >, Ġinternal Ġval Ġa unt : ĠS ue ? Ġ= Ġnull ) Ġ{ ĊĠĠĠ Ġinternal Ġconstructor ( var arg Ġcompound s : ĠPair < String , ĠInt >) Ġ: Ġthis ( map Of (* compound s )) ĊĊĠĠĠ Ġinternal Ġinline Ġfun Ġcompare To ( other : ĠM emo ir , Ġcomparator : ĠCompound Comparator ): ĠBoolean Ġ= ĊĠĠĠĠĠĠĠ Ġthis . compound s . all Ġ{ Ġcompound Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcomparator ( compound . value , Ġother . compound s . getValue ( compound . key ), Ġcompound . key ) ĊĠĠĠĠĠĠĠ Ġ} Ċ } Ċ Ċ internal Ġtype alias ĠCompound Comparator Ġ= Ġ( a : ĠInt , Ġb : ĠInt , Ġkey : ĠString ) Ġ-> ĠBoolean Ċ