An immutable date wrapper that can serve as a distributable key object for caching as well as being a string value.
More...
Inherits Apache::Geode::Client::ICacheableKey, and Apache::Geode::Client::IDataSerializablePrimitive.
|
int8_t | DsCode [get] |
| Returns the classId of the instance being serialized. More...
|
|
virtual System::UInt64 | ObjectSize [get] |
| return the size of this object in bytes More...
|
|
DateTime | Value [get] |
| Gets the System.DateTime value. More...
|
|
An immutable date wrapper that can serve as a distributable key object for caching as well as being a string value.
◆ CacheableDate() [1/2]
Apache::Geode::Client::CacheableDate::CacheableDate |
( |
| ) |
|
|
inline |
Allocates a new default instance.
◆ CacheableDate() [2/2]
Apache::Geode::Client::CacheableDate::CacheableDate |
( |
DateTime |
dateTime | ) |
|
Initializes a new instance of the CacheableDate
to the given System.DateTime
value.
- Parameters
-
dateTime | A System.DateTime value to initialize this instance. |
◆ Create() [1/2]
static CacheableDate ^ Apache::Geode::Client::CacheableDate::Create |
( |
| ) |
|
|
inlinestatic |
Static function that returns a new default instance.
◆ Create() [2/2]
static CacheableDate ^ Apache::Geode::Client::CacheableDate::Create |
( |
DateTime |
dateTime | ) |
|
|
inlinestatic |
Static function that returns a new instance initialized to the given System.DateTime
value.
◆ CreateDeserializable()
static ISerializable ^ Apache::Geode::Client::CacheableDate::CreateDeserializable |
( |
| ) |
|
|
inlinestatic |
Factory function to register this class.
◆ Equals() [1/2]
virtual bool Apache::Geode::Client::CacheableDate::Equals |
( |
ICacheableKey^ |
other | ) |
|
|
virtual |
◆ Equals() [2/2]
virtual bool Apache::Geode::Client::CacheableDate::Equals |
( |
Object^ |
obj | ) |
|
|
overridevirtual |
Return true if this key matches other object.
◆ FromData()
virtual void Apache::Geode::Client::CacheableDate::FromData |
( |
DataInput^ |
input | ) |
|
|
virtual |
Deserialize this object, typical implementation should return the 'this' pointer.
- Parameters
-
input | the DataInput stream to use for reading the object data |
- Returns
- the deserialized object
◆ GetHashCode()
virtual System::Int32 Apache::Geode::Client::CacheableDate::GetHashCode |
( |
| ) |
|
|
overridevirtual |
◆ ToData()
virtual void Apache::Geode::Client::CacheableDate::ToData |
( |
DataOutput^ |
output | ) |
|
|
virtual |
Serializes this object.
- Parameters
-
output | the DataOutput object to use for serializing the object |
◆ ToString()
virtual String ^ Apache::Geode::Client::CacheableDate::ToString |
( |
| ) |
|
|
overridevirtual |
◆ EpochTime
initonly DateTime Apache::Geode::Client::CacheableDate::EpochTime |
|
staticinitonly |
Initial value:= DateTime(1970, 1, 1,
0, 0, 0, DateTimeKind::Utc)
DataTime
value since 1/1/1970
◆ DsCode
int8_t Apache::Geode::Client::CacheableDate::DsCode |
|
get |
Returns the classId of the instance being serialized.
This is used by deserialization to determine what instance type to create and deserialize into.
- Returns
- the classId
◆ ObjectSize
virtual System:: UInt64 Apache::Geode::Client::CacheableDate::ObjectSize |
|
get |
return the size of this object in bytes
return the size of this object in bytes
◆ Value
DateTime Apache::Geode::Client::CacheableDate::Value |
|
get |
Gets the System.DateTime
value.