protected Iterable addHyphenToDateRange(Iterable value,java.util.List<OffsetPair> offsets){
  if (offsets.size() != 2)   return value;
  Iterator iterator=value.iterator();
  Object date1=iterator.hasNext() ? iterator.next() : null;
  Object date2=iterator.hasNext() ? iterator.next() : null;
  if (date1 != null && date2 != null) {
    return Arrays.asList(date1 + "-",date2);
  }
  return value;
}

protected Iterable addHyphenToDateRange ( Iterable value , java . util . List < OffsetPair > offsets ) { if ( offsets . size ( ) != 2 ) return value ; Iterator iterator = value . iterator ( ) ; Object date1 = iterator . hasNext ( ) ? iterator . next ( ) : null ; Object date2 = iterator . hasNext ( ) ? iterator . next ( ) : null ; if ( date1 != null && date2 != null ) { return Arrays . asList ( date1 + "-" , date2 ) ; } return value ; }
add a hyphen to the first element in a list of dates to indicate a date range . this method only modifiers the date list if exactly two dates are displayed in the graphic .
