Class TimePeriod
java.lang.Object
com.espertech.esper.common.client.util.TimePeriod
- All Implemented Interfaces:
Serializable
Represents a time period.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCtor for chain.boolean
getDays()
Returns days or null if not provided.getHours()
Returns hours or null if not provided.Returns microseconds or null if not provided.Returns milliseconds or null if not provided.Returns minutes or null if not provided.Returns months or null if not provided.Returns seconds or null if not provided.getWeeks()
Returns weeks or null if not provided.getYears()
Returns years or null if not provided.int
hashCode()
Ctor for chain.Returns the largest absolute value.Ctor for chain.Ctor for chain.Ctor for chain.Ctor for chain.Ctor for chain.void
Sets days or null if not provided.void
Sets hours or null if not provided.void
setMicroseconds
(Integer microseconds) Sets microseconds or null if not provided.void
setMilliseconds
(Integer milliseconds) Sets milliseconds or null if not provided.void
setMinutes
(Integer minutes) Sets minutes or null if not provided.void
Sets months or null if not provided.void
setSeconds
(Integer seconds) Sets seconds or null if not provided.void
Sets weeks or null if not provided.void
Sets years or null if not provided.Returns ISO8601 string.Ctor for chain.Ctor for chain.
-
Field Details
-
EPTYPE
Type information
-
-
Constructor Details
-
TimePeriod
public TimePeriod(Integer years, Integer months, Integer weeks, Integer days, Integer hours, Integer minutes, Integer seconds, Integer milliseconds, Integer microseconds) Ctor.- Parameters:
years
- yearsmonths
- monthweeks
- weeksdays
- dayshours
- hoursminutes
- minutesseconds
- secondsmilliseconds
- millisecondsmicroseconds
- microseconds
-
TimePeriod
public TimePeriod()Ctor.
-
-
Method Details
-
getYears
Returns years or null if not provided.- Returns:
- years
-
getMonths
Returns months or null if not provided.- Returns:
- months
-
getWeeks
Returns weeks or null if not provided.- Returns:
- weeks
-
getDays
Returns days or null if not provided.- Returns:
- days
-
getHours
Returns hours or null if not provided.- Returns:
- hours
-
getMinutes
Returns minutes or null if not provided.- Returns:
- minutes
-
getSeconds
Returns seconds or null if not provided.- Returns:
- seconds
-
getMilliseconds
Returns milliseconds or null if not provided.- Returns:
- millis
-
getMicroseconds
Returns microseconds or null if not provided.- Returns:
- micros
-
setYears
Sets years or null if not provided.- Parameters:
years
- to set
-
setMonths
Sets months or null if not provided.- Parameters:
months
- to set
-
setWeeks
Sets weeks or null if not provided.- Parameters:
weeks
- to set
-
setDays
Sets days or null if not provided.- Parameters:
days
- to set
-
setHours
Sets hours or null if not provided.- Parameters:
hours
- to set
-
setMinutes
Sets minutes or null if not provided.- Parameters:
minutes
- to set
-
setSeconds
Sets seconds or null if not provided.- Parameters:
seconds
- to set
-
setMilliseconds
Sets milliseconds or null if not provided.- Parameters:
milliseconds
- to set
-
setMicroseconds
Sets microseconds or null if not provided.- Parameters:
microseconds
- to set
-
years
Ctor for chain.- Parameters:
years
- years- Returns:
- time period
-
months
Ctor for chain.- Parameters:
months
- months- Returns:
- time period
-
weeks
Ctor for chain.- Parameters:
weeks
- weeks- Returns:
- time period
-
days
Ctor for chain.- Parameters:
days
- days- Returns:
- time period
-
hours
Ctor for chain.- Parameters:
hours
- hours- Returns:
- time period
-
min
Ctor for chain.- Parameters:
minutes
- minutes- Returns:
- time period
-
sec
Ctor for chain.- Parameters:
seconds
- seconds- Returns:
- time period
-
millis
Ctor for chain.- Parameters:
milliseconds
- millis- Returns:
- time period
-
micros
Ctor for chain.- Parameters:
microseconds
- micros- Returns:
- time period
-
equals
-
hashCode
public int hashCode() -
toStringISO8601
Returns ISO8601 string.- Returns:
- formatted
-
largestAbsoluteValue
Returns the largest absolute value.- Returns:
- largest absolute value
-