public class TimeInstant extends Time
Time.NilReason, Time.RelativePosition, Time.TimeFormat| Constructor and Description |
|---|
TimeInstant()
default constructor
|
TimeInstant(java.util.Date date)
Constructor using Java Dates, setting unknown indeterminate values if
null
|
TimeInstant(org.joda.time.DateTime dateTime)
constructor
|
TimeInstant(org.joda.time.DateTime dateValue,
IndeterminateValue indeterminateValue)
constructor with date and indeterminateValue.
|
TimeInstant(org.joda.time.DateTime value,
int requestedTimeLength) |
TimeInstant(IndeterminateValue indeterminateValue)
constructor
|
TimeInstant(org.joda.time.Instant instant)
Creates a new
TimeInstant. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Time o) |
boolean |
equals(java.lang.Object paramObject) |
IndeterminateValue |
getIndeterminateValue()
Get indeterminate value
|
int |
getRequestedTimeLength()
Get requested time length
|
TimePosition |
getTimePosition()
Get the time position of this time instant
|
org.joda.time.DateTime |
getValue()
Get time value
|
int |
hashCode() |
boolean |
isEmpty()
Check if time is empty
|
boolean |
isIndeterminateValueEqualTo(IndeterminateValue value)
Check whether this indeterminate value equals expected value
|
boolean |
isSetIndeterminateValue()
Check if indeterminate value is set
|
boolean |
isSetValue()
Check if time value is set
|
org.joda.time.DateTime |
resolveValue()
Get time value, resolving indeterminate value if value is null
|
Time |
setIndeterminateValue(IndeterminateValue indeterminateValue)
Set indeterminate value
|
void |
setRequestedTimeLength(int requestedTimeLength)
Set requested time length
|
void |
setValue(org.joda.time.DateTime value)
Set time value
|
java.lang.String |
toString() |
getGmlId, getNilReason, getReference, getTimeFormat, isNilReasonEqualTo, isReferenced, isSetGmlId, isSetNilReason, isSetReference, isSetTimeFormat, resolveDateTime, setGmlId, setNilReason, setReference, setTimeFormatpublic TimeInstant()
public TimeInstant(org.joda.time.DateTime dateTime)
dateTime - Time position of this time instantpublic TimeInstant(org.joda.time.Instant instant)
TimeInstant.instant - the instantpublic TimeInstant(IndeterminateValue indeterminateValue)
indeterminateValue - Indeterminate valuepublic TimeInstant(org.joda.time.DateTime dateValue,
IndeterminateValue indeterminateValue)
dateValue - date of the timeInstanteindeterminateValue - Indeterminate valuepublic TimeInstant(java.util.Date date)
date - Value datepublic TimeInstant(org.joda.time.DateTime value,
int requestedTimeLength)
public org.joda.time.DateTime getValue()
public void setValue(org.joda.time.DateTime value)
value - The value to set.public org.joda.time.DateTime resolveValue()
public void setRequestedTimeLength(int requestedTimeLength)
requestedTimeLength - the requestedTimeLength to setpublic int getRequestedTimeLength()
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(Time o)
public boolean equals(java.lang.Object paramObject)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isSetValue()
public IndeterminateValue getIndeterminateValue()
public TimePosition getTimePosition()
public Time setIndeterminateValue(IndeterminateValue indeterminateValue)
indeterminateValue - The indeterminateValue to set.public boolean isSetIndeterminateValue()
public boolean isIndeterminateValueEqualTo(IndeterminateValue value)
value - Expected valuetrue, if this indeterminate value equals expected
valuepublic boolean isEmpty()
TimeisEmpty in class TimeisSetValue(),
isSetIndeterminateValue()Copyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.