public final class DateValues extends java.lang.Object implements IValues<java.util.Date>
Constructor and Description |
---|
DateValues()
Creates a new
DateValues instance |
DateValues(int capacity)
Creates a new
DateValues instance |
DateValues(long[] items)
Creates a new
DateValues instance and initializes it with specified array |
Modifier and Type | Method and Description |
---|---|
void |
add(java.util.Date date)
Adds new value
|
void |
add(java.util.Date[] dates)
Adds multiple values from array
|
void |
add(java.util.Date[] dates,
int startIndex,
int count)
Adds multiple values from array region
|
void |
add(int location,
java.util.Date date)
Adds new value at specified location.
|
void |
addTime(int location,
long time)
Adds new value in ticks.
|
void |
addTime(long time)
Adds new value in ticks
|
void |
addTime(long[] timeValues)
Adds multiple values in ticks from array
|
void |
addTime(long[] timeValues,
int startIndex,
int count)
Adds multiple values in ticks from array region
|
void |
clear()
Clears values without disposing allocated memory
|
void |
disposeItems()
Clears and disposes allocated memory
|
java.util.Date |
get(int index)
Gets the value at specified location
|
long[] |
getItemsArray()
Gets the internal items array
|
long |
getTime(int index) |
java.lang.Class<java.util.Date> |
getValuesType()
Get type of values
|
void |
remove(int location)
Removes value at specified location
|
void |
set(int location,
java.util.Date date)
Sets the value at specified location
|
void |
setSize(int size)
Sets the values size
|
void |
setTime(int location,
long time)
Sets the value at specified location
|
int |
size()
Gets the size of values
|
public DateValues()
DateValues
instancepublic DateValues(int capacity)
DateValues
instancecapacity
- The initial capacitypublic DateValues(long[] items)
DateValues
instance and initializes it with specified arrayitems
- The array with itemspublic long[] getItemsArray()
public void addTime(long time)
time
- The value in ticks to addpublic void addTime(int location, long time)
location
- The location to add value at.time
- The value in ticks to add.public void addTime(long[] timeValues)
timeValues
- The values in ticks to addpublic void addTime(long[] timeValues, int startIndex, int count)
timeValues
- The values array to addstartIndex
- The index of first value to addcount
- The amount of values to addpublic void add(@NonNull java.util.Date date)
date
- The value to addpublic void add(int location, @NonNull java.util.Date date)
location
- The location to add value at.date
- The value to add.public void add(java.util.Date[] dates)
dates
- The values to addpublic void add(java.util.Date[] dates, int startIndex, int count)
dates
- The values array to addstartIndex
- The index of first value to addcount
- The amount of values to addpublic void setTime(int location, long time)
location
- The location to set value attime
- The value to setpublic long getTime(int index)
public void set(int location, @NonNull java.util.Date date)
location
- The location to set value atdate
- The value to set@NonNull public java.util.Date get(int index)
index
- The index of value to getpublic int size()
public void setSize(int size)
size
- The new size of values instancepublic void remove(int location)
location
- The location to remove value tatpublic void clear()
clear
in interface ICleanable
public void disposeItems()
public java.lang.Class<java.util.Date> getValuesType()
getValuesType
in interface IValues<java.util.Date>