package Ġcom . not k am ui . k our rier . search Ċ Ċ import Ġcom . not k am ui . k our rier . core . Unknown Sort Term Exception Ċ import Ġcom . sun . mail . imap . Sort Term Ċ Ċ /** Ċ Ġ* ĠWrapper Ġaround Ġthe Ġstandard Ġ[ Sort Term ] Ċ Ġ*/ Ċ enum Ġclass ĠK our rier Sort Term ( private Ġval Ġraw Sort Term : ĠSort Term ) Ġ{ ĊĠĠĠ ĠFrom ( Sort Term . FROM ), ĊĠĠĠ ĠTo ( Sort Term . TO ), ĊĠĠĠ ĠSubject ( Sort Term . SUBJECT ), ĊĠĠĠ ĠAr rival ( Sort Term . AR RI VAL ), ĊĠĠĠ ĠSent ( Sort Term . DATE ), ĊĠĠĠ ĠCC ( Sort Term . CC ), ĊĠĠĠ ĠReverse ( Sort Term . RE VERSE ), ĊĠĠĠ ĠSize ( Sort Term . SIZE ), ĊĠĠĠ Ġ; ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġ/** ĊĠĠĠĠĠĠĠĠ Ġ* ĠObtain Ġa Ġ[ K our rier Sort Term ] Ġfrom Ġa Ġraw Ġ[ Sort Term ] ĊĠĠĠĠĠĠĠĠ Ġ*/ ĊĠĠĠĠĠĠĠ Ġfun Ġfrom Raw Sort Term ( raw Sort Term : ĠSort Term ): ĠK our rier Sort Term Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ Ġvalues (). find Ġ{ Ġit . raw Sort Term Ġ== Ġraw Sort Term Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ?: Ġthrow ĠUnknown Sort Term Exception () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠObtain Ġa Ġraw Ġ[ Sort Term ] Ġfrom Ġthis Ġ[ K our rier Sort Term ] ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġfun Ġto Raw Sort Term (): ĠSort Term Ġ= Ġraw Sort Term Ċ } Ċ