Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
histream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Raphael
histream
Commits
516317c6
Commit
516317c6
authored
Aug 23, 2017
by
R.W.Majeed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporal interface removed
parent
33910d0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
18 deletions
+1
-18
histream-core/src/main/java/de/sekmi/histream/DateTimeAccuracy.java
...ore/src/main/java/de/sekmi/histream/DateTimeAccuracy.java
+1
-18
No files found.
histream-core/src/main/java/de/sekmi/histream/DateTimeAccuracy.java
View file @
516317c6
...
...
@@ -34,10 +34,8 @@ import java.time.format.DateTimeFormatter;
import
java.time.format.DateTimeParseException
;
import
java.time.temporal.ChronoField
;
import
java.time.temporal.ChronoUnit
;
import
java.time.temporal.Temporal
;
import
java.time.temporal.TemporalAccessor
;
import
java.time.temporal.TemporalField
;
import
java.time.temporal.TemporalUnit
;
import
java.util.Date
;
import
java.util.Objects
;
...
...
@@ -52,7 +50,7 @@ import de.sekmi.histream.xml.DateTimeAccuracyAdapter;
*
*/
@XmlJavaTypeAdapter
(
DateTimeAccuracyAdapter
.
class
)
public
class
DateTimeAccuracy
implements
Temporal
,
Comparable
<
DateTimeAccuracy
>
{
public
class
DateTimeAccuracy
implements
Comparable
<
DateTimeAccuracy
>
{
static
final
String
PARTIAL_FORMATTER_PATTERN
=
"u[-M[-d['T'H[:m[:s[.S]]][X]]]]"
;
static
final
DateTimeFormatter
PARTIAL_FORMATTER
=
DateTimeFormatter
.
ofPattern
(
PARTIAL_FORMATTER_PATTERN
);
...
...
@@ -104,21 +102,6 @@ public class DateTimeAccuracy implements Temporal, Comparable<DateTimeAccuracy>
}
// TODO toInstantMax() (increase field at accuracy and subtract one millisecond)
// Temporal interface behaves like underlaying instant
// TODO verify that these methods make sense with given accuracy
@Override
public
long
getLong
(
TemporalField
arg0
)
{
return
instant
.
getLong
(
arg0
);}
@Override
public
boolean
isSupported
(
TemporalField
arg0
)
{
return
instant
.
isSupported
(
arg0
);}
@Override
public
boolean
isSupported
(
TemporalUnit
unit
)
{
return
instant
.
isSupported
(
unit
);}
@Override
public
Temporal
plus
(
long
amountToAdd
,
TemporalUnit
unit
)
{
return
instant
.
plus
(
amountToAdd
,
unit
);}
@Override
public
long
until
(
Temporal
endExclusive
,
TemporalUnit
unit
)
{
return
instant
.
until
(
endExclusive
,
unit
);}
@Override
public
Temporal
with
(
TemporalField
field
,
long
newValue
)
{
return
instant
.
with
(
field
,
newValue
);}
/**
* Get the accuracy for the date time object.
* <p>
...
...
Write
Preview
Markdown
is supported
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