public class UInt16 extends ValueType
.NET documentation at https://learn.microsoft.com/dotnet/api/System.UInt16
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=9.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.UInt16
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
UInt16() |
UInt16(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static UInt16 |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into UInt16, a cast assert is made to check if types are compatible. |
static UInt16 |
Clamp(UInt16 value,
UInt16 min,
UInt16 max)
Invokes the .NET member Clamp.
|
int |
CompareTo(NetObject value)
Invokes the .NET member CompareTo.
|
int |
CompareTo(UInt16 value)
Invokes the .NET member CompareTo.
|
static <TOther extends IJCOBridgeReflected> |
CreateChecked(TOther value)
Invokes the .NET member CreateChecked.
|
static <TOther extends IJCOBridgeReflected> |
CreateSaturating(TOther value)
Invokes the .NET member CreateSaturating.
|
static <TOther extends IJCOBridgeReflected> |
CreateTruncating(TOther value)
Invokes the .NET member CreateTruncating.
|
static ValueTuple_2 |
DivRem(UInt16 left,
UInt16 right)
Invokes the .NET member DivRem.
|
boolean |
Equals(UInt16 obj)
Invokes the .NET member Equals.
|
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. |
TypeCode |
GetTypeCode()
Invokes the .NET member GetTypeCode.
|
static boolean |
IsEvenInteger(UInt16 value)
Invokes the .NET member IsEvenInteger.
|
static boolean |
IsOddInteger(UInt16 value)
Invokes the .NET member IsOddInteger.
|
static boolean |
IsPow2(UInt16 value)
Invokes the .NET member IsPow2.
|
static UInt16 |
LeadingZeroCount(UInt16 value)
Invokes the .NET member LeadingZeroCount.
|
static UInt16 |
Log2(UInt16 value)
Invokes the .NET member Log2.
|
static UInt16 |
Max(UInt16 x,
UInt16 y)
Invokes the .NET member Max.
|
static UInt16 |
Min(UInt16 x,
UInt16 y)
Invokes the .NET member Min.
|
static UInt16 |
Parse(java.lang.String s)
Invokes the .NET member Parse.
|
static UInt16 |
Parse(java.lang.String s,
IFormatProvider provider)
Invokes the .NET member Parse.
|
static UInt16 |
Parse(java.lang.String s,
NumberStyles style)
Invokes the .NET member Parse.
|
static UInt16 |
Parse(java.lang.String s,
NumberStyles style,
IFormatProvider provider)
Invokes the .NET member Parse.
|
static UInt16 |
PopCount(UInt16 value)
Invokes the .NET member PopCount.
|
static UInt16 |
RotateLeft(UInt16 value,
int rotateAmount)
Invokes the .NET member RotateLeft.
|
static UInt16 |
RotateRight(UInt16 value,
int rotateAmount)
Invokes the .NET member RotateRight.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
static int |
Sign(UInt16 value)
Invokes the .NET member Sign.
|
java.lang.String |
ToString(IFormatProvider provider)
Invokes the .NET member ToString.
|
java.lang.String |
ToString(java.lang.String format)
Invokes the .NET member ToString.
|
java.lang.String |
ToString(java.lang.String format,
IFormatProvider provider)
Invokes the .NET member ToString.
|
static UInt16 |
TrailingZeroCount(UInt16 value)
Invokes the .NET member TrailingZeroCount.
|
static boolean |
TryParse(java.lang.String s,
IFormatProvider provider,
JCORefOut<UInt16> result)
Invokes the .NET member TryParse.
|
static boolean |
TryParse(java.lang.String s,
JCORefOut<UInt16> result)
Invokes the .NET member TryParse.
|
static boolean |
TryParse(java.lang.String s,
NumberStyles style,
IFormatProvider provider,
JCORefOut<UInt16> result)
Invokes the .NET member TryParse.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public UInt16()
throws java.lang.Throwable
java.lang.Throwablepublic UInt16(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 UInt16 cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into UInt16, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedUInt16 instancejava.lang.Throwable - in case of error during cast operationpublic static UInt16 Clamp(UInt16 value, UInt16 min, UInt16 max) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
value - the argument of type UInt16min - the argument of type UInt16max - the argument of type UInt16java.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 itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic int CompareTo(NetObject value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
value - 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 CompareTo(UInt16 value) throws java.lang.Throwable
value - the argument of type UInt16java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static <TOther extends IJCOBridgeReflected> UInt16 CreateChecked(TOther value) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, IndexOutOfRangeException, OverflowException
TOther - the type of the generic argument TOthervalue - the argument of type TOtherjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itpublic static <TOther extends IJCOBridgeReflected> UInt16 CreateSaturating(TOther value) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, OverflowException
TOther - the type of the generic argument TOthervalue - the argument of type TOtherjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itpublic static <TOther extends IJCOBridgeReflected> UInt16 CreateTruncating(TOther value) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, OverflowException
TOther - the type of the generic argument TOthervalue - the argument of type TOtherjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itpublic static ValueTuple_2 DivRem(UInt16 left, UInt16 right) throws java.lang.Throwable
left - the argument of type UInt16right - the argument of type UInt16java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean Equals(UInt16 obj) throws java.lang.Throwable
obj - the argument of type UInt16java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class ValueTypepublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class ValueTypepublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class ValueTypenull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class ValueTypepublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class ValueTypepublic TypeCode GetTypeCode() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static boolean IsEvenInteger(UInt16 value) throws java.lang.Throwable
value - the argument of type UInt16java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static boolean IsOddInteger(UInt16 value) throws java.lang.Throwable
value - the argument of type UInt16java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static boolean IsPow2(UInt16 value) throws java.lang.Throwable
value - the argument of type UInt16java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static UInt16 LeadingZeroCount(UInt16 value) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException
value - the argument of type UInt16java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic static UInt16 Log2(UInt16 value) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException
value - the argument of type UInt16java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic static UInt16 Max(UInt16 x, UInt16 y) throws java.lang.Throwable
x - the argument of type UInt16y - the argument of type UInt16java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static UInt16 Min(UInt16 x, UInt16 y) throws java.lang.Throwable
x - the argument of type UInt16y - the argument of type UInt16java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static UInt16 Parse(java.lang.String s) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, FormatException, OverflowException
s - the argument of type java.lang.Stringjava.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 itNullReferenceException - if the .NET member raises itFormatException - if the .NET member raises itOverflowException - if the .NET member raises itpublic static UInt16 Parse(java.lang.String s, IFormatProvider provider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, FormatException, OverflowException
s - the argument of type java.lang.Stringprovider - the argument of type IFormatProviderjava.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 itNullReferenceException - if the .NET member raises itFormatException - if the .NET member raises itOverflowException - if the .NET member raises itpublic static UInt16 Parse(java.lang.String s, NumberStyles style) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, FormatException, OverflowException
s - the argument of type java.lang.Stringstyle - the argument of type NumberStylesjava.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 itNullReferenceException - if the .NET member raises itFormatException - if the .NET member raises itOverflowException - if the .NET member raises itpublic static UInt16 Parse(java.lang.String s, NumberStyles style, IFormatProvider provider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, NullReferenceException, FormatException, OverflowException
s - the argument of type java.lang.Stringstyle - the argument of type NumberStylesprovider - the argument of type IFormatProviderjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - 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 itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNullReferenceException - if the .NET member raises itFormatException - if the .NET member raises itOverflowException - if the .NET member raises itpublic static UInt16 PopCount(UInt16 value) throws java.lang.Throwable
value - the argument of type UInt16java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static UInt16 RotateLeft(UInt16 value, int rotateAmount) throws java.lang.Throwable
value - the argument of type UInt16rotateAmount - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static UInt16 RotateRight(UInt16 value, int rotateAmount) throws java.lang.Throwable
value - the argument of type UInt16rotateAmount - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class ValueTypeinstance - the new underlying objectpublic static int Sign(UInt16 value) throws java.lang.Throwable
value - the argument of type UInt16java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException
provider - the argument of type IFormatProviderjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic java.lang.String ToString(java.lang.String format)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException,
FormatException,
NullReferenceException,
ArgumentNullException,
ArgumentOutOfRangeException,
ArrayTypeMismatchException
format - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itNullReferenceException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic java.lang.String ToString(java.lang.String format,
IFormatProvider provider)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException,
FormatException,
NullReferenceException,
ArgumentNullException,
ArgumentOutOfRangeException,
ArrayTypeMismatchException
format - the argument of type java.lang.Stringprovider - the argument of type IFormatProviderjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itNullReferenceException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic static UInt16 TrailingZeroCount(UInt16 value) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException
value - the argument of type UInt16java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic static boolean TryParse(java.lang.String s,
IFormatProvider provider,
JCORefOut<UInt16> result)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
NullReferenceException
s - the argument of type java.lang.Stringprovider - the argument of type IFormatProviderresult - the argument of type JCORefOut<UInt16>java.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 itIndexOutOfRangeException - if the .NET member raises itNullReferenceException - if the .NET member raises itpublic static boolean TryParse(java.lang.String s,
JCORefOut<UInt16> result)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
NullReferenceException
s - the argument of type java.lang.Stringresult - the argument of type JCORefOut<UInt16>java.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 itIndexOutOfRangeException - if the .NET member raises itNullReferenceException - if the .NET member raises itpublic static boolean TryParse(java.lang.String s,
NumberStyles style,
IFormatProvider provider,
JCORefOut<UInt16> result)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
NullReferenceException
s - the argument of type java.lang.Stringstyle - the argument of type NumberStylesprovider - the argument of type IFormatProviderresult - the argument of type JCORefOut<UInt16>java.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 itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNullReferenceException - if the .NET member raises it