int function ( final @ Nullable NewsStory arg0 ) { assert arg0 != null ; return page - arg0 . page ; }
we define compareto so that we can sort new stories more easily : we 're only interested in the day 's top story anyway . findbugs complains that we still use object.equals , but that 's alright : even if the events were precisely the same , news stories are unique . concode_field_sep List<NewsEvent> crimes concode_elem_sep int page concode_elem_sep int count concode_elem_sep int violenceLevel concode_elem_sep boolean positive concode_elem_sep StoryType type concode_elem_sep int priority concode_elem_sep Location location concode_elem_sep boolean claimed concode_elem_sep CrimeSquad siegetype concode_elem_sep Issue view concode_elem_sep NewsEvent[] dullCrimes concode_elem_sep long serialVersionUID concode_elem_sep int politicsLevel concode_elem_sep Creature creature concode_field_sep NewsStory addNews concode_elem_sep Map<NewsEvent,Integer> crimeListToMap concode_elem_sep void setpriority concode_elem_sep NewsStory claimed concode_elem_sep Location location concode_elem_sep NewsStory location concode_elem_sep boolean isClaimed concode_elem_sep NewsStory type concode_elem_sep int crimeCount concode_elem_sep NewsStory creature concode_elem_sep Creature creature