Package system
Class Guid
- java.lang.Object
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class Guid extends ValueType
The base .NET class managing System.Guid, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Guid
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.String
assemblyShortName
Assembly name: System.Private.CoreLibstatic java.lang.String
className
Qualified class name: System.Guidstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description Guid()
Guid(byte[] b)
Guid(int a, short b, short c, byte[] d)
Guid(int a, short b, short c, byte d, byte e, byte f, byte g, byte h, byte i, byte j, byte k)
Guid(java.lang.Object instance)
Internal constructor.Guid(java.lang.String g)
Guid(UInt32 a, UInt16 b, UInt16 c, byte d, byte e, byte f, byte g, byte h, byte i, byte j, byte k)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Guid
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoGuid
, a cast assert is made to check if types are compatible.int
CompareTo(NetObject value)
int
CompareTo(Guid value)
static Guid
CreateVersion7()
static Guid
CreateVersion7(DateTimeOffset timestamp)
boolean
Equals(Guid g)
static Guid
getAllBitsSet()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typeint
getVariant()
int
getVersion()
static Guid
NewGuid()
static Guid
Parse(java.lang.String input)
static Guid
Parse(java.lang.String s, IFormatProvider provider)
static Guid
ParseExact(java.lang.String input, java.lang.String format)
void
setJCOInstance(JCObject instance)
byte[]
ToByteArray()
byte[]
ToByteArray(boolean bigEndian)
java.lang.String
ToString(java.lang.String format)
java.lang.String
ToString(java.lang.String format, IFormatProvider provider)
static boolean
TryParse(java.lang.String input, JCORefOut<Guid> result)
static boolean
TryParse(java.lang.String s, IFormatProvider provider, JCORefOut<Guid> result)
static boolean
TryParseExact(java.lang.String input, java.lang.String format, JCORefOut<Guid> result)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Guid- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Guid
public Guid(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
Guid
public Guid() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Guid
public Guid(byte[] b) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
Guid
public Guid(int a, short b, short c, byte d, byte e, byte f, byte g, byte h, byte i, byte j, byte k) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Guid
public Guid(int a, short b, short c, byte[] d) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
Guid
public Guid(java.lang.String g) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OverflowException, FormatException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classValueType
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classValueType
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classValueType
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classValueType
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classValueType
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Guid cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoGuid
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Guid
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Equals
public boolean Equals(Guid g) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
TryParse
public static boolean TryParse(java.lang.String input, JCORefOut<Guid> result) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentException, ArgumentOutOfRangeException, OverflowException, FormatException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException
-
TryParse
public static boolean TryParse(java.lang.String s, IFormatProvider provider, JCORefOut<Guid> result) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentException, ArgumentOutOfRangeException, OverflowException, FormatException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException
-
TryParseExact
public static boolean TryParseExact(java.lang.String input, java.lang.String format, JCORefOut<Guid> result) throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, OverflowException, FormatException, InvalidOperationException
-
ToByteArray
public byte[] ToByteArray() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, PlatformNotSupportedException
-
ToByteArray
public byte[] ToByteArray(boolean bigEndian) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, PlatformNotSupportedException
-
CompareTo
public int CompareTo(Guid value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CompareTo
public int CompareTo(NetObject value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
-
CreateVersion7
public static Guid CreateVersion7() throws java.lang.Throwable, ArgumentOutOfRangeException, NotSupportedException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentNullException, InvalidOperationException, FormatException
-
CreateVersion7
public static Guid CreateVersion7(DateTimeOffset timestamp) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
NewGuid
public static Guid NewGuid() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Parse
public static Guid Parse(java.lang.String s, IFormatProvider provider) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OverflowException, FormatException
-
Parse
public static Guid Parse(java.lang.String input) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OverflowException, FormatException
-
ParseExact
public static Guid ParseExact(java.lang.String input, java.lang.String format) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, FormatException, IndexOutOfRangeException, OverflowException
-
ToString
public java.lang.String ToString(java.lang.String format, IFormatProvider provider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, FormatException, IndexOutOfRangeException
-
ToString
public java.lang.String ToString(java.lang.String format) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
-
getVariant
public int getVariant() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getVersion
public int getVersion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getAllBitsSet
public static Guid getAllBitsSet() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-