summaryrefslogtreecommitdiffstats
path: root/src/org/uic/barcode/ticket/api/impl/SimpleValidityDetails.java
blob: a5c46a520ff87d8651086a42b67f650fc17850d6 (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.barcode.ticket.api.impl;

import java.util.Collection;
import java.util.LinkedHashSet;

import org.uic.barcode.ticket.api.spec.ITimeRange;
import org.uic.barcode.ticket.api.spec.IValidityDetails;
import org.uic.barcode.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);
	}

}