package Ġcom . k yle cor ry . trail _ sense . tools . ped ometer . domain Ċ Ċ import Ġcom . k yle cor ry . and rome da . core . spec ifications . Specification Ċ import Ġcom . k yle cor ry . trail _ sense . settings . infrastructure . IP ed ometer Preferences Ċ import Ġcom . k yle cor ry . trail _ sense . shared . commands . Command Ċ import Ġcom . k yle cor ry . trail _ sense . tools . ped ometer . infrastructure . I Step Counter Ċ import Ġcom . k yle cor ry . trail _ sense . tools . ped ometer . infrastructure . Is Today Specification Ċ import Ġjava . time . Instant Ċ Ċ class ĠDaily Step Reset Command ( ĊĠĠĠ Ġprivate Ġval Ġpreferences : ĠIP ed ometer Preferences , ĊĠĠĠ Ġprivate Ġval Ġcounter : ĠI Step Counter , ĊĠĠĠ Ġprivate Ġval Ġis Today : ĠSpecification < Instant > Ġ= ĠIs Today Specification () Ċ ) Ġ: ĠCommand Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġexecute () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġwas Reset Today Ġ= Ġcounter . startTime ?. let ( is Today :: is Satisf ied By ) Ġ?: Ġfalse ĊĠĠĠĠĠĠĠ Ġif Ġ(! was Reset Today Ġ&& Ġpreferences . reset Daily ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcounter . reset () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }