Apache Geode Native .NET Reference 1.15.0
Apache::Geode::Client::CacheableInt64 Class Reference

An immutable wrapper for 64-bit integers that can serve as a distributable key object for caching. More...

#include <CacheableBuiltins.hpp>

Inherits Apache::Geode::Client::CacheableBuiltinKey< native::CacheableInt64, System::Int64, static_cast< int8_t >(DSCode::CacheableInt64)>.

Public Member Functions

 CacheableInt64 ()
 * Allocates a new instance with the given value. More...
 
 CacheableInt64 (System::Int64 value)
 * Allocates a new instance with the given value. More...
 
virtual bool Equals (ICacheableKey^ other) override
 Return true if this key matches other object. More...
 
virtual bool Equals (Object^ obj) override
 Return true if this key matches other object. More...
 
virtual System::Int32 GetHashCode () override
 Return the hashcode for this key. More...
 
bool operator== (System::Int64 other)
 Comparison operator against another value. More...
 
String ^ ToString () override
 Return a string representation of the object. More...
 

Static Public Member Functions

static CacheableInt64Create (System::Int64 value)
 * Static function to create a new instance given value. More...
 
static ISerializableCreateDeserializable ()
 * Factory function to register this class. More...
 
static operator CacheableKey^ (bool value)
 Implicit conversion operator from a boolean to a CacheableKey. More...
 
static operator CacheableKey^ (Byte value)
 Implicit conversion operator from a byte to a CacheableKey. More...
 
static operator CacheableKey^ (Char value)
 Implicit conversion operator from a character to a CacheableKey. More...
 
static operator CacheableKey^ (Double value)
 Implicit conversion operator from a double to a CacheableKey. More...
 
static operator CacheableKey^ (Single value)
 Implicit conversion operator from a float to a CacheableKey. More...
 
static operator CacheableKey^ (String^ value)
 Implicit conversion operator from a string to a CacheableKey. More...
 
static operator CacheableKey^ (System::Int16 value)
 Implicit conversion operator from a 16-bit integer to a CacheableKey. More...
 
static operator CacheableKey^ (System::Int32 value)
 Implicit conversion operator from a 32-bit integer to a CacheableKey. More...
 
static operator CacheableKey^ (System::Int64 value)
 Implicit conversion operator from a 64-bit integer to a CacheableKey. More...
 
static operator System::Int64 (CacheableInt64 ^ value)
 * Explicit conversion operator to contained value type. More...
 

Properties

System::UInt64 ObjectSize [get]
 Get the size of this object in bytes. More...
 
virtual System::UInt64 ObjectSize [get]
 return the size of this object in bytes More...
 
System::Int64 Value [get]
 Gets the value. More...
 

Detailed Description

An immutable wrapper for 64-bit integers that can serve as a distributable key object for caching.

Constructor & Destructor Documentation

◆ CacheableInt64() [1/2]

Apache::Geode::Client::CacheableInt64::CacheableInt64 ( )
inline

* Allocates a new instance with the given value.

*

Parameters
valuethe value of the new instance


◆ CacheableInt64() [2/2]

Apache::Geode::Client::CacheableInt64::CacheableInt64 ( System::Int64  value)
inline

* Allocates a new instance with the given value.

*

Parameters
valuethe value of the new instance


Member Function Documentation

◆ Create()

static CacheableInt64 ^ Apache::Geode::Client::CacheableInt64::Create ( System::Int64  value)
inlinestatic

* Static function to create a new instance given value.

*

Parameters
valuethe value of the new instance


◆ CreateDeserializable()

static ISerializable ^ Apache::Geode::Client::CacheableInt64::CreateDeserializable ( )
inlinestatic

* Factory function to register this class.