public class StringComparer extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.StringComparer
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.StringComparer
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
StringComparer() |
StringComparer(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static StringComparer |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into StringComparer, a cast assert is made to check if types are compatible. |
int |
Compare(NetObject x,
NetObject y)
Invokes the .NET member Compare.
|
int |
Compare(java.lang.String x,
java.lang.String y)
Invokes the .NET member Compare.
|
static StringComparer |
Create(CultureInfo culture,
boolean ignoreCase)
Invokes the .NET member Create.
|
static StringComparer |
Create(CultureInfo culture,
CompareOptions options)
Invokes the .NET member Create.
|
boolean |
Equals(NetObject x,
NetObject y)
Invokes the .NET member Equals.
|
boolean |
Equals(java.lang.String x,
java.lang.String y)
Invokes the .NET member Equals.
|
static StringComparer |
FromComparison(StringComparison comparisonType)
Invokes the .NET member FromComparison.
|
static StringComparer |
getCurrentCulture()
Gets the value of the .NET property CurrentCulture.
|
static StringComparer |
getCurrentCultureIgnoreCase()
Gets the value of the .NET property CurrentCultureIgnoreCase.
|
int |
GetHashCode(NetObject obj)
Invokes the .NET member GetHashCode.
|
int |
GetHashCode(java.lang.String obj)
Invokes the .NET member GetHashCode.
|
static StringComparer |
getInvariantCulture()
Gets the value of the .NET property InvariantCulture.
|
static StringComparer |
getInvariantCultureIgnoreCase()
Gets the value of the .NET property InvariantCultureIgnoreCase.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
static StringComparer |
getOrdinal()
Gets the value of the .NET property Ordinal.
|
static StringComparer |
getOrdinalIgnoreCase()
Gets the value of the .NET property OrdinalIgnoreCase.
|
static boolean |
IsWellKnownCultureAwareComparer(IEqualityComparer_1 comparer,
JCORefOut<CompareInfo> compareInfo,
JCORefOut<CompareOptions> compareOptions)
Invokes the .NET member IsWellKnownCultureAwareComparer.
|
static boolean |
IsWellKnownOrdinalComparer(IEqualityComparer_1 comparer,
JCORefOut<java.util.concurrent.atomic.AtomicBoolean> ignoreCase)
Invokes the .NET member IsWellKnownOrdinalComparer.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public StringComparer()
throws java.lang.Throwable
java.lang.Throwablepublic StringComparer(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static StringComparer cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into StringComparer, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedStringComparer instancejava.lang.Throwable - in case of error during cast operationpublic int Compare(NetObject x, NetObject y) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
x - the argument of type NetObjecty - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic int Compare(java.lang.String x,
java.lang.String y)
throws java.lang.Throwable
x - the argument of type java.lang.Stringy - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static StringComparer Create(CultureInfo culture, boolean ignoreCase) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, CultureNotFoundException
culture - the argument of type CultureInfoignoreCase - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic static StringComparer Create(CultureInfo culture, CompareOptions options) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, CultureNotFoundException
culture - the argument of type CultureInfooptions - the argument of type CompareOptionsjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic boolean Equals(NetObject x, NetObject y) throws java.lang.Throwable
x - the argument of type NetObjecty - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean Equals(java.lang.String x,
java.lang.String y)
throws java.lang.Throwable
x - the argument of type java.lang.Stringy - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static StringComparer FromComparison(StringComparison comparisonType) throws java.lang.Throwable, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, ArgumentOutOfRangeException, ArgumentException
comparisonType - the argument of type StringComparisonjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itpublic static StringComparer getCurrentCulture() throws java.lang.Throwable, ArgumentNullException, OutOfMemoryException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ExternalException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itExternalException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic static StringComparer getCurrentCultureIgnoreCase() throws java.lang.Throwable, ArgumentNullException, OutOfMemoryException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ExternalException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itExternalException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic int GetHashCode(NetObject obj) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
obj - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic int GetHashCode(java.lang.String obj)
throws java.lang.Throwable
obj - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static StringComparer getInvariantCulture() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static StringComparer getInvariantCultureIgnoreCase() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic static StringComparer getOrdinal() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static StringComparer getOrdinalIgnoreCase() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static boolean IsWellKnownCultureAwareComparer(IEqualityComparer_1 comparer, JCORefOut<CompareInfo> compareInfo, JCORefOut<CompareOptions> compareOptions) throws java.lang.Throwable
comparer - the argument of type IEqualityComparer_1compareInfo - the argument of type JCORefOut<CompareInfo>compareOptions - the argument of type JCORefOut<CompareOptions>java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static boolean IsWellKnownOrdinalComparer(IEqualityComparer_1 comparer, JCORefOut<java.util.concurrent.atomic.AtomicBoolean> ignoreCase) throws java.lang.Throwable
comparer - the argument of type IEqualityComparer_1ignoreCase - the argument of type JCORefOut<java.util.concurrent.atomic.AtomicBoolean>java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying object