Package system
Class TimeOnly
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class TimeOnly extends ValueType
The base .NET class managing System.TimeOnly, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e.See: https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic String
assemblyShortName
Assembly name: System.Private.CoreLibstatic String
className
Qualified class name: System.TimeOnlystatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.TimeOnly- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TimeOnly
public TimeOnly(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
TimeOnly
public TimeOnly(int hour, int minute, int second, int millisecond) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, FormatException
-
TimeOnly
public TimeOnly(int hour, int minute, int second) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, FormatException
-
TimeOnly
public TimeOnly(int hour, int minute) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, FormatException
-
TimeOnly
public TimeOnly(long ticks) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
-
-
Method Detail
-
getJCOAssemblyName
public 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 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 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 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 TimeOnly cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoTimeOnly
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
TimeOnly
instance- Throws:
Throwable
- in case of error during cast operation
-
IsBetween
public boolean IsBetween(TimeOnly start, TimeOnly end) throws Throwable
- Throws:
Throwable
-
TryParse
public static boolean TryParse(String s, IFormatProvider provider, DateTimeStyles style, JCORefOut<TimeOnly> result) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, OutOfMemoryException, ExternalException, CultureNotFoundException, OverflowException
-
TryParse
public static boolean TryParse(String s, JCORefOut<TimeOnly> result) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, OverflowException
-
TryParseExact
public static boolean TryParseExact(String s, String format, IFormatProvider provider, DateTimeStyles style, JCORefOut<TimeOnly> result) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, TypeInitializationException, OverflowException, FormatException, CultureNotFoundException
-
TryParseExact
public static boolean TryParseExact(String s, String format, JCORefOut<TimeOnly> result) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, RankException, ArrayTypeMismatchException, TypeInitializationException, OverflowException, InvalidOperationException, FormatException
-
TryParseExact
public static boolean TryParseExact(String s, String[] formats, IFormatProvider provider, DateTimeStyles style, JCORefOut<TimeOnly> result) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, IndexOutOfRangeException, FormatException, CultureNotFoundException
-
TryParseExact
public static boolean TryParseExact(String s, String[] formats, JCORefOut<TimeOnly> result) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, OverflowException, InvalidOperationException, FormatException
-
CompareTo
public int CompareTo(NetObject value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
-
ToLongTimeString
public String ToLongTimeString() throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, FormatException, OverflowException
-
ToString
public String ToString(IFormatProvider provider) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, CultureNotFoundException, OverflowException
-
ToString
public String ToString(String format, IFormatProvider provider) throws Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, SecurityException, OverflowException, FormatException, OutOfMemoryException, CultureNotFoundException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
IndexOutOfRangeException
SecurityException
OverflowException
FormatException
OutOfMemoryException
CultureNotFoundException
-
ToString
public String ToString(String format) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, CultureNotFoundException, OverflowException
-
Add
public TimeOnly Add(TimeSpan value, JCORefOut<AtomicInteger> wrappedDays) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
Add
public TimeOnly Add(TimeSpan value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
AddHours
public TimeOnly AddHours(double value, JCORefOut<AtomicInteger> wrappedDays) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
AddHours
public TimeOnly AddHours(double value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
AddMinutes
public TimeOnly AddMinutes(double value, JCORefOut<AtomicInteger> wrappedDays) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
AddMinutes
public TimeOnly AddMinutes(double value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
FromDateTime
public static TimeOnly FromDateTime(DateTime dateTime) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
FromTimeSpan
public static TimeOnly FromTimeSpan(TimeSpan timeSpan) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
Parse
public static TimeOnly Parse(String s, IFormatProvider provider, DateTimeStyles style) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, OutOfMemoryException, ExternalException, OverflowException, FormatException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
ArgumentNullException
ObjectDisposedException
RankException
OutOfMemoryException
ExternalException
OverflowException
FormatException
-
Parse
public static TimeOnly Parse(String s) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, OverflowException, FormatException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CultureNotFoundException
OverflowException
FormatException
-
ParseExact
public static TimeOnly ParseExact(String s, String format, IFormatProvider provider, DateTimeStyles style) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, TypeInitializationException, OverflowException, FormatException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
ArgumentNullException
ObjectDisposedException
RankException
TypeInitializationException
OverflowException
FormatException
-
ParseExact
public static TimeOnly ParseExact(String s, String format) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, TypeInitializationException, OverflowException, FormatException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
TypeInitializationException
OverflowException
FormatException
-
ParseExact
public static TimeOnly ParseExact(String s, String[] formats, IFormatProvider provider, DateTimeStyles style) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, OverflowException, FormatException
-
ParseExact
public static TimeOnly ParseExact(String dupParam0, JCORefOut dupParam1, IFormatProvider dupParam2, DateTimeStyles dupParam3) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, OverflowException, FormatException
-
ParseExact
public static TimeOnly ParseExact(String s, String[] formats) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, FormatException
-
ParseExact
public static TimeOnly ParseExact(String dupParam0, JCORefOut dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, FormatException
-
-