public class RANGE extends BaseStruct
The RANGE struct consists of two fixed fields - ListEntries and RangeEntries - followed by an arbitrary number single and pair variants of TIMEDATE and NUMBER.
Not that NUMBER_PAIRs are particularly useful.
Modifier and Type | Class and Description |
---|---|
static class |
RANGE.Type |
Modifier and Type | Field and Description |
---|---|
static int |
_ListEntries |
static int |
_RangeEntries |
static int |
sizeOf |
data, owned
Constructor and Description |
---|
RANGE() |
RANGE(long data) |
RANGE(long data,
boolean owned) |
RANGE(long data,
boolean owned,
RANGE.Type type) |
RANGE(long data,
RANGE.Type type) |
RANGE(RANGE.Type type) |
Modifier and Type | Method and Description |
---|---|
static RANGE |
fromDateList(Collection<?> dateList)
Creates a new RANGE containing the values from the provided
List converted to Domino TIMEDATEs and TIMEDATE_PAIRs. |
static RANGE |
fromNumberList(Collection<? extends Number> numList)
Creates a new RANGE containing the values from the provided
List converted to Domino NUMBERs (double). |
short |
getListEntries() |
double[] |
getNumberValues()
Returns the number values of this list as doubles.
|
short |
getRangeEntries() |
TIMEDATE_PAIR[] |
getTimeDatePairValues()
Returns the TIMEDATE_PAIR elements following this RANGE, but not the TIMEDATEs
|
TIMEDATE[] |
getTimeDateValues()
Returns the TIMEDATE elements following this RANGE, but not the TIMEDATE_PAIRs.
|
int |
getTotalSize() |
RANGE.Type |
getType() |
void |
setListEntries(short listEntries) |
void |
setRangeEntries(short rangeEntries) |
void |
setType(RANGE.Type type) |
_checkRefValidity, _getBYTE, _getDHandle, _getDWORD, _getFONTID, _getHTMLAPI_REF_TYPE, _getInt, _getLong, _getNOTEID, _getPointer, _getUSHORT, _getWORD, _setBYTE, _setDHandle, _setDWORD, _setFONTID, _setInt, _setLong, _setNOTEID, _setUSHORT, _setWORD, finalize, free, free, getAllocatedStructCount, getDataPtr, getField, isRefValid, isTraceCreation, setDataPtr, setTraceCreation, toString
public static final int sizeOf
public static final int _ListEntries
public static final int _RangeEntries
public RANGE()
public RANGE(RANGE.Type type)
public RANGE(long data)
public RANGE(long data, RANGE.Type type)
public RANGE(long data, boolean owned)
public RANGE(long data, boolean owned, RANGE.Type type)
public static RANGE fromNumberList(Collection<? extends Number> numList)
Creates a new RANGE containing the values from the provided List
converted to Domino NUMBERs (double).
This includes allocating the dynamic space past the RANGE to house the NUMBER values.
public static RANGE fromDateList(Collection<?> dateList) throws DominoException
Creates a new RANGE containing the values from the provided List
converted to Domino TIMEDATEs and TIMEDATE_PAIRs.
The list's values must be date/time objects according to DominoNativeUtils.isDateTimeType(Object)
.
This includes allocating the dynamic space past the RANGE to house the TIMEDATE values.
DominoException
public short getListEntries()
public void setListEntries(short listEntries)
public short getRangeEntries()
public void setRangeEntries(short rangeEntries)
public void setType(RANGE.Type type)
public RANGE.Type getType()
public int getTotalSize()
public double[] getNumberValues()
Returns the number values of this list as doubles.
The resultant data is detached from the original struct's memory.
public TIMEDATE[] getTimeDateValues()
Returns the TIMEDATE elements following this RANGE, but not the TIMEDATE_PAIRs.
The returned structures are views on the original memory.
public TIMEDATE_PAIR[] getTimeDatePairValues()
Returns the TIMEDATE_PAIR elements following this RANGE, but not the TIMEDATEs
The returned structures are views on the original memory.
Copyright © 2014–2018. All rights reserved.