VMware GemFire Native Client .NET Framework API Reference
|
VMware VMware GemFire Native .NET Reference 10.4.3
|
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.
Public Member Functions | |
| CacheableString (array< Char >^ value) | |
| Allocates a new instance copying from the given character array. | |
| CacheableString (String^ value) | |
| Allocates a new instance copying from the given string. | |
| virtual bool | Equals (Apache::Geode::Client::ICacheableKey^ other) override |
| Return true if this key matches other object. | |
| virtual bool | Equals (Object^ obj) override |
| Return true if this key matches other object. | |
| virtual System::Int32 | GetHashCode () override |
| Return the hashcode for this key. | |
| virtual String ^ | ToString () override |
| Return a string representation of the object. | |
Static Public Member Functions | |
| static CacheableString ^ | Create (array< Char >^ value) |
| Static function to create a new instance copying from the given character array. | |
| static CacheableString ^ | Create (String^ value) |
| Static function to create a new instance copying from the given string. | |
| static bool | IsNullOrEmpty (CacheableString^ value) |
| Static function to check whether IsNullOrEmpty. | |
| static | operator CacheableKey^ (bool value) |
Implicit conversion operator from a boolean to a CacheableKey. | |
| static | operator CacheableKey^ (Byte value) |
Implicit conversion operator from a byte to a CacheableKey. | |
| static | operator CacheableKey^ (Char value) |
Implicit conversion operator from a character to a CacheableKey. | |
| static | operator CacheableKey^ (Double value) |
Implicit conversion operator from a double to a CacheableKey. | |
| static | operator CacheableKey^ (Single value) |
Implicit conversion operator from a float to a CacheableKey. | |
| static | operator CacheableKey^ (String^ value) |
Implicit conversion operator from a string to a CacheableKey. | |
| static | operator CacheableKey^ (System::Int16 value) |
Implicit conversion operator from a 16-bit integer to a CacheableKey. | |
| static | operator CacheableKey^ (System::Int32 value) |
Implicit conversion operator from a 32-bit integer to a CacheableKey. | |
| static | operator CacheableKey^ (System::Int64 value) |
Implicit conversion operator from a 64-bit integer to a CacheableKey. | |
| static | operator String ^ (CacheableString^ str) |
Implicit conversion operator to underlying System.String. | |
Properties | |
| bool | IsWideString [get] |
| True when the underlying C string is a wide-character string. | |
| System::UInt32 | Length [get] |
| Gets the length of the underlying C string. | |
| String^ | Value [get] |
| Gets the string value. | |
Detailed Description
An immutable string wrapper that can serve as a distributable key object for caching as well as being a string value.
Constructor & Destructor Documentation
◆ 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
-
IllegalArgumentException if the provided string is null or has zero length
◆ 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
-
IllegalArgumentException if the provided array is null or has zero length
Member Function Documentation
◆ Create() [1/2]
|
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]
|
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]
|
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.
◆ Equals() [2/2]
|
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()
|
overridevirtual |
Return the hashcode for this key.
Reimplemented from Apache::Geode::Client::CacheableKey.
◆ IsNullOrEmpty()
|
inlinestatic |
Static function to check whether IsNullOrEmpty.
This is similar to the C# string.IsNullOrEmpty method.
- Parameters
-
value the CacheableString value to check
◆ operator CacheableKey^() [1/9]
|
staticinherited |
Implicit conversion operator from a boolean to a CacheableKey.
◆ operator CacheableKey^() [2/9]
|
staticinherited |
Implicit conversion operator from a byte to a CacheableKey.
◆ operator CacheableKey^() [3/9]
|
staticinherited |
Implicit conversion operator from a character to a CacheableKey.
◆ operator CacheableKey^() [4/9]
|
staticinherited |
Implicit conversion operator from a double to a CacheableKey.
◆ operator CacheableKey^() [5/9]
|
staticinherited |
Implicit conversion operator from a float to a CacheableKey.
◆ operator CacheableKey^() [6/9]
|
staticinherited |
Implicit conversion operator from a string to a CacheableKey.
◆ operator CacheableKey^() [7/9]
|
staticinherited |
Implicit conversion operator from a 16-bit integer to a CacheableKey.
◆ operator CacheableKey^() [8/9]
|
staticinherited |
Implicit conversion operator from a 32-bit integer to a CacheableKey.
◆ operator CacheableKey^() [9/9]
|
staticinherited |
Implicit conversion operator from a 64-bit integer to a CacheableKey.
◆ operator String ^()
|
inlinestatic |
Implicit conversion operator to underlying System.String.
◆ ToString()
|
inlineoverridevirtual |
Return a string representation of the object.
This returns the same string as Value property.
Implements Apache::Geode::Client::ISerializable.
Property Documentation
◆ IsWideString
|
get |
True when the underlying C string is a wide-character string.
◆ Length
|
get |
Gets the length of the underlying C string.
◆ Value
|
get |
Gets the string value.
Apache Geode C++ Cache .NET API Documentation