1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package com.github.maven_nar.cpptasks;
21
22
23
24
25 public final class TargetHistory {
26 private final
27 private final
28 private final
29 private final
30
31
32
33
34 public TargetHistory(final String config, final String output, final long outputLastModified,
35 final SourceHistory[] sources) {
36 if (config == null) {
37 throw new NullPointerException("config");
38 }
39 if (sources == null) {
40 throw new NullPointerException("source");
41 }
42 if (output == null) {
43 throw new NullPointerException("output");
44 }
45 this.config = config;
46 this.output = output;
47 this.outputLastModified = outputLastModified;
48 this.sources = sources.clone();
49 }
50
51 public String getOutput() {
52 return this.output;
53 }
54
55 public long getOutputLastModified() {
56 return this.outputLastModified;
57 }
58
59 public String getProcessorConfiguration() {
60 return this.config;
61 }
62
63 public SourceHistory[] getSources() {
64 final SourceHistory[] clone = this.sources.clone();
65 return clone;
66 }
67 }