Package lazyj
Class EpochTimeRange
java.lang.Object
lazyj.EpochTimeRange
Wrap a PostgreSQL int8range column type with some simple operations. DBFunctions is now aware of this and can use it in 
DBFunctions.composeInsert(String, java.util.Map)
 and DBFunctions.composeUpdate(String, java.util.Map, java.util.Collection). If you want to parse a column simply say: 
 EpochTimeRange range = new EpochTimeRange(db.gets("validity"));
 - Since:
- 2020-03-03
- Author:
- costing
- 
Field SummaryFieldsModifier and TypeFieldDescriptionlongEnd time of the intervalbooleanWhether or not the end of the interval is included in the rangebooleanWhether or not the start of the interval is included in the rangelongStart time of the interval
- 
Constructor SummaryConstructorsConstructorDescriptiondefault object is valid from now (inclusive) to infinity (exclusive :) )EpochTimeRange(String dbValue) Initialize the interval endpoints from the database value (PostgreSQL text serialization of it)
- 
Method Summary
- 
Field Details- 
includingStartpublic boolean includingStartWhether or not the start of the interval is included in the range
- 
includingEndpublic boolean includingEndWhether or not the end of the interval is included in the range
- 
startTimepublic long startTimeStart time of the interval
- 
endTimepublic long endTimeEnd time of the interval
 
- 
- 
Constructor Details- 
EpochTimeRangepublic EpochTimeRange()default object is valid from now (inclusive) to infinity (exclusive :) )
- 
EpochTimeRangeInitialize the interval endpoints from the database value (PostgreSQL text serialization of it)- Parameters:
- dbValue- DB column value
 
 
- 
- 
Method Details