Changeset 17564 for branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
- Timestamp:
- 05/27/20 15:45:50 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Interval/IntervalCollection.cs
r17506 r17564 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Linq; 24 25 using HEAL.Attic; 25 26 using HeuristicLab.Common; … … 51 52 } 52 53 } 54 55 public int Count => intervals.Count; 53 56 54 57 public IntervalCollection() : base() { } … … 87 90 } 88 91 89 public IDictionary<string, Interval> GetIntervals() { 90 return intervals; 92 public IReadOnlyDictionary<string, Interval> GetReadonlyDictionary() { 93 return intervals.ToDictionary(pair => pair.Key, pair => pair.Value); 94 } 95 96 public IEnumerable<Tuple<string, Interval>> GetVariableIntervals() { 97 foreach (var variableInterval in intervals) 98 yield return Tuple.Create(variableInterval.Key, variableInterval.Value); 91 99 } 92 100 }
Note: See TracChangeset
for help on using the changeset viewer.