blob: 87a88104ec09374ed4e16c147b98f676d0bee56c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
package org.uic.ticket.api.impl;
import java.util.Collection;
import java.util.LinkedHashSet;
import org.uic.ticket.api.spec.ITimeRange;
import org.uic.ticket.api.spec.IValidityDetails;
import org.uic.ticket.api.spec.IValidityRange;
public class SimpleValidityDetails implements IValidityDetails {
private Collection<IValidityRange> validityRanges = new LinkedHashSet<IValidityRange>();
private Collection<ITimeRange> timeRanges = new LinkedHashSet<ITimeRange>();
@Override
public Collection<IValidityRange> getValidityRanges() {
return validityRanges;
}
@Override
public Collection<ITimeRange> getTimeRanges() {
return timeRanges;
}
@Override
public void addValidityRanges(IValidityRange range) {
this.validityRanges.add(range);
}
@Override
public void addTimeRanges(ITimeRange range) {
this.timeRanges.add(range);
}
}
|