protected void addToOverlaps(Intervalable interval, List<Intervalable> overlaps, List<Intervalable> newOverlaps)
    {
        for (Intervalable currentInterval : newOverlaps)
        {
            if (!currentInterval.equals(interval))
            {
                overlaps.add(currentInterval);
            }
        }
    }
protected void addToOverlaps ( Intervalable interval , List < Intervalable > overlaps , List < Intervalable > newOverlaps ) { for ( Intervalable currentInterval : newOverlaps ) { if ( ! currentInterval . equals ( interval ) ) { overlaps . add ( currentInterval ) ; } } }
添加到重叠区间列表中
@param interval 跟此区间重叠
@param overlaps 重叠区间列表
@param newOverlaps 希望将这些区间加入