1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package org.basepom.mojo.propertyhelper.beans;
16
17 import static com.google.common.base.Preconditions.checkNotNull;
18
19 import java.util.Optional;
20
21 import com.google.common.annotations.VisibleForTesting;
22
23 public class DateDefinition
24 extends AbstractDefinition<DateDefinition> {
25
26
27
28
29 String timezone = null;
30
31
32
33
34 Long value = null;
35
36 public DateDefinition() {
37 }
38
39 public Optional<String> getTimezone() {
40 return Optional.ofNullable(timezone);
41 }
42
43 @VisibleForTesting
44 public DateDefinition setTimezone(final String timezone) {
45 this.timezone = checkNotNull(timezone, "timezone is null");
46 return this;
47 }
48
49 public Optional<Long> getValue() {
50 return Optional.ofNullable(value);
51 }
52
53 @VisibleForTesting
54 public DateDefinition setValue(final Long value) {
55 this.value = checkNotNull(value, "value is null");
56 return this;
57 }
58 }