Skip to content

Commit 7d3a015

Browse files
author
Philipp Wagner
committed
Create Interval.java
1 parent 0c20774 commit 7d3a015

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

  • PgBulkInsert/src/main/java/de/bytefish/pgbulkinsert/pgsql/model/interval
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package de.bytefish.pgbulkinsert.pgsql.model.interval;
2+
3+
public class Interval {
4+
5+
private final int months;
6+
private final int days;
7+
private final long time;
8+
9+
10+
public Interval(int months, int days, long time) {
11+
this.months = months;
12+
this.days = days;
13+
this.time = time;
14+
}
15+
16+
public int getMonths() {
17+
return months;
18+
}
19+
20+
public int getDays() {
21+
return days;
22+
}
23+
24+
public long getTime() {
25+
return time;
26+
}
27+
}

0 commit comments

Comments
 (0)