Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Raphael
histream
Commits
6bfa31e1
Commit
6bfa31e1
authored
Aug 05, 2015
by
R.W.Majeed
Browse files
now comparable
parent
e5be0fb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
histream-core/src/main/java/de/sekmi/histream/DateTimeAccuracy.java
View file @
6bfa31e1
...
...
@@ -44,7 +44,7 @@ import de.sekmi.histream.xml.DateTimeAccuracyAdapter;
*
*/
@XmlJavaTypeAdapter
(
DateTimeAccuracyAdapter
.
class
)
public
class
DateTimeAccuracy
implements
Temporal
{
public
class
DateTimeAccuracy
implements
Temporal
,
Comparable
<
DateTimeAccuracy
>
{
private
LocalDateTime
dateTime
;
private
ChronoUnit
accuracy
;
...
...
@@ -284,4 +284,8 @@ public class DateTimeAccuracy implements Temporal {
return
new
DateTimeAccuracy
(
year
,
month
,
day
,
hour
,
minute
,
seconds
);
// milliseconds not supported for now
}
@Override
public
int
compareTo
(
DateTimeAccuracy
o
)
{
return
dateTime
.
compareTo
(
o
.
dateTime
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment