An immutable string wrapper that can serve as a distributable key object for caching as well as being a string value.
More...
#include <CacheableString.hpp>
Inherits Apache::Geode::Client::IDataSerializablePrimitive, and Apache::Geode::Client::CacheableKey.
|
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.
◆ CacheableString() [1/2]
Apache::Geode::Client::CacheableString::CacheableString |
( |
String^ |
value | ) |
|
Allocates a new instance copying from the given string.
- Parameters
-
value | the string value of the new instance |
- Exceptions
-
◆ CacheableString() [2/2]
Apache::Geode::Client::CacheableString::CacheableString |
( |
array< Char >^ |
value | ) |
|
Allocates a new instance copying from the given character array.
- Parameters
-
value | the character array value of the new instance |
- Exceptions
-
◆ Create() [1/2]
static CacheableString ^ Apache::Geode::Client::CacheableString::Create |
( |
array< Char >^ |
value | ) |
|
|
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.
- Parameters
-
value | the character array value of the new instance |
◆ Create() [2/2]
static CacheableString ^ Apache::Geode::Client::CacheableString::Create |
( |
String^ |
value | ) |
|
|
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.
- Parameters
-
value | the string value of the new instance |
◆ Equals() [1/2]
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.
◆ Equals() [2/2]
virtual bool Apache::Geode::Client::CacheableString::Equals |
( |
Object^ |
obj | ) |
|
|
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.
◆ GetHashCode()
virtual System::Int32 Apache::Geode::Client::CacheableString::GetHashCode |
( |
| ) |
|
|
overridevirtual |
◆ IsNullOrEmpty()
static bool Apache::Geode::Client::CacheableString::IsNullOrEmpty |
( |
CacheableString^ |
value | ) |
|
|
inlinestatic |
Static function to check whether IsNullOrEmpty.
This is similar to the C# string.IsNullOrEmpty method.
- Parameters
-
◆ operator CacheableKey^() [1/9]
static Apache::Geode::Client::CacheableKey::operator CacheableKey^ |
( |
bool |
value | ) |
|
|
staticinherited |
Implicit conversion operator from a boolean to a CacheableKey
.
◆ operator CacheableKey^() [2/9]
static Apache::Geode::Client::CacheableKey::operator CacheableKey^ |
( |
Byte |
value | ) |
|
|
staticinherited |
◆ operator CacheableKey^() [3/9]
static Apache::Geode::Client::CacheableKey::operator CacheableKey^ |
( |
Char |
value | ) |
|
|
staticinherited |
Implicit conversion operator from a character to a CacheableKey
.
◆ operator CacheableKey^() [4/9]
static Apache::Geode::Client::CacheableKey::operator CacheableKey^ |
( |
Double |
value | ) |
|
|
staticinherited |
Implicit conversion operator from a double to a CacheableKey
.
◆ operator CacheableKey^() [5/9]
static Apache::Geode::Client::CacheableKey::operator CacheableKey^ |
( |
Single |
value | ) |
|
|
staticinherited |
Implicit conversion operator from a float to a CacheableKey
.
◆ operator CacheableKey^() [6/9]
static Apache::Geode::Client::CacheableKey::operator CacheableKey^ |
( |
String^ |
value | ) |
|
|
staticinherited |
Implicit conversion operator from a string to a CacheableKey
.
◆ operator CacheableKey^() [7/9]
static Apache::Geode::Client::CacheableKey::operator CacheableKey^ |
( |
System::Int16 |
value | ) |
|
|
staticinherited |
Implicit conversion operator from a 16-bit integer to a CacheableKey
.
◆ operator CacheableKey^() [8/9]
static Apache::Geode::Client::CacheableKey::operator CacheableKey^ |
( |
System::Int32 |
value | ) |
|
|
staticinherited |
Implicit conversion operator from a 32-bit integer to a CacheableKey
.
◆ operator CacheableKey^() [9/9]
static Apache::Geode::Client::CacheableKey::operator CacheableKey^ |
( |
System::Int64 |
value | ) |
|
|
staticinherited |
Implicit conversion operator from a 64-bit integer to a CacheableKey
.
◆ operator String ^()
static Apache::Geode::Client::CacheableString::operator String ^ |
( |
CacheableString^ |
str | ) |
|
|
inlinestatic |
Implicit conversion operator to underlying System.String
.
◆ ToString()
virtual String ^ Apache::Geode::Client::CacheableString::ToString |
( |
| ) |
|
|
inlineoverridevirtual |
◆ IsWideString
bool Apache::Geode::Client::CacheableString::IsWideString |
|
get |
True when the underlying C string is a wide-character string.
◆ Length
System:: UInt32 Apache::Geode::Client::CacheableString::Length |
|
get |
Gets the length of the underlying C string.
◆ Value
String^ Apache::Geode::Client::CacheableString::Value |
|
get |