Pivotal GemFire Native .NET Reference
10.0.5
|
An immutable string wrapper that can serve as a distributable key object for caching as well as being a string value. More...
Inherits Apache::Geode::Client::IDataSerializablePrimitive, and Apache::Geode::Client::CacheableKey.
Public Member Functions | |
CacheableString (array< Char >^ value) | |
Allocates a new instance copying from the given character array. More... | |
CacheableString (String^ value) | |
Allocates a new instance copying from the given string. More... | |
virtual bool | Equals (Apache::Geode::Client::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... | |
virtual String ^ | ToString () override |
Return a string representation of the object. More... | |
Static Public Member Functions | |
static CacheableString ^ | Create (array< Char >^ value) |
Static function to create a new instance copying from the given character array. More... | |
static CacheableString ^ | Create (String^ value) |
Static function to create a new instance copying from the given string. More... | |
static bool | IsNullOrEmpty (CacheableString^ value) |
Static function to check whether IsNullOrEmpty. 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 String ^ (CacheableString^ str) |
Implicit conversion operator to underlying System.String . More... | |
Properties | |
bool | IsWideString [get] |
True when the underlying C string is a wide-character string. More... | |
System::UInt32 | Length [get] |
Gets the length of the underlying C string. More... | |
String^ | Value [get] |
Gets the string value. More... | |
An immutable string wrapper that can serve as a distributable key object for caching as well as being a string value.
Apache::Geode::Client::CacheableString::CacheableString | ( | String^ | value | ) |
Allocates a new instance copying from the given string.
value | the string value of the new instance |
IllegalArgumentException | if the provided string is null or has zero length |
Apache::Geode::Client::CacheableString::CacheableString | ( | array< Char >^ | value | ) |
Allocates a new instance copying from the given character array.
value | the character array value of the new instance |
IllegalArgumentException | if the provided array is null or has zero length |
|
inlinestatic |
Static function to create a new instance copying from the given character array.
Providing a null or zero size character array will return a null CacheableString
object.
value | the character array value of the new instance |
|
inlinestatic |
Static function to create a new instance copying from the given string.
Providing a null or zero size string will return a null CacheableString
object.
value | the string value of the new instance |
|
overridevirtual |
Return true if this key matches other object.
It invokes the '==' operator of the underlying apache::geode::client::CacheableString
object.
Reimplemented from Apache::Geode::Client::CacheableKey.
|
overridevirtual |
Return true if this key matches other object.
It invokes the '==' operator of the underlying apache::geode::client::CacheableString
object.
Reimplemented from Apache::Geode::Client::CacheableKey.
|
overridevirtual |
Return the hashcode for this key.
Reimplemented from Apache::Geode::Client::CacheableKey.
|
inlinestatic |
Static function to check whether IsNullOrEmpty.
This is similar to the C# string.IsNullOrEmpty method.
value | the CacheableString value to check |
|
staticinherited |
Implicit conversion operator from a boolean to a CacheableKey
.
|
staticinherited |
Implicit conversion operator from a byte to a CacheableKey
.
|
staticinherited |
Implicit conversion operator from a character to a CacheableKey
.
|
staticinherited |
Implicit conversion operator from a double to a CacheableKey
.
|
staticinherited |
Implicit conversion operator from a float to a CacheableKey
.
|
staticinherited |
Implicit conversion operator from a string to a CacheableKey
.
|
staticinherited |
Implicit conversion operator from a 16-bit integer to a CacheableKey
.
|
staticinherited |
Implicit conversion operator from a 32-bit integer to a CacheableKey
.
|
staticinherited |
Implicit conversion operator from a 64-bit integer to a CacheableKey
.
|
inlinestatic |
Implicit conversion operator to underlying System.String
.
|
inlineoverridevirtual |
Return a string representation of the object.
This returns the same string as Value
property.
Implements Apache::Geode::Client::ISerializable.
|
get |
True when the underlying C string is a wide-character string.
|
get |
Gets the length of the underlying C string.
|
get |
Gets the string value.