Table of Contents

Class TimeUnit

Namespace
Java.Util.Concurrent
Assembly
MASES.JNet.dll
public class TimeUnit : Enum<TimeUnit>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<Enum<TimeUnit>>
TimeUnit
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<Enum<TimeUnit>>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Enum<TimeUnit>>.IsAssignableFrom<T>()
JVMBridgeBase<Enum<TimeUnit>>.Execute<T>(params T[])
JVMBridgeBase<Enum<TimeUnit>>.DynBridgeClazz
JVMBridgeBase<Enum<TimeUnit>>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

TimeUnit()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public TimeUnit()

TimeUnit(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public TimeUnit(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

DAYS

public static TimeUnit DAYS { get; }

Property Value

TimeUnit

HOURS

public static TimeUnit HOURS { get; }

Property Value

TimeUnit

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

MICROSECONDS

public static TimeUnit MICROSECONDS { get; }

Property Value

TimeUnit

MILLISECONDS

public static TimeUnit MILLISECONDS { get; }

Property Value

TimeUnit

MINUTES

public static TimeUnit MINUTES { get; }

Property Value

TimeUnit

NANOSECONDS

public static TimeUnit NANOSECONDS { get; }

Property Value

TimeUnit

SECONDS

public static TimeUnit SECONDS { get; }

Property Value

TimeUnit

Methods

Convert(Duration)

public long Convert(Duration arg0)

Parameters

arg0 Duration

Duration

Returns

long

long

Convert(long, TimeUnit)

public long Convert(long arg0, TimeUnit arg1)

Parameters

arg0 long

long

arg1 TimeUnit

TimeUnit

Returns

long

long

Of(ChronoUnit)

public static TimeUnit Of(ChronoUnit arg0)

Parameters

arg0 ChronoUnit

ChronoUnit

Returns

TimeUnit

TimeUnit

Sleep(long)

public void Sleep(long arg0)

Parameters

arg0 long

long

Exceptions

InterruptedException

TimedJoin(Thread, long)

public void TimedJoin(Thread arg0, long arg1)

Parameters

arg0 Thread

Thread

arg1 long

long

Exceptions

InterruptedException

TimedWait(object, long)

public void TimedWait(object arg0, long arg1)

Parameters

arg0 object

object

arg1 long

long

Exceptions

InterruptedException

ToChronoUnit()

public ChronoUnit ToChronoUnit()

Returns

ChronoUnit

ChronoUnit

ToDays(long)

public long ToDays(long arg0)

Parameters

arg0 long

long

Returns

long

long

ToHours(long)

public long ToHours(long arg0)

Parameters

arg0 long

long

Returns

long

long

ToMicros(long)

public long ToMicros(long arg0)

Parameters

arg0 long

long

Returns

long

long

ToMillis(long)

public long ToMillis(long arg0)

Parameters

arg0 long

long

Returns

long

long

ToMinutes(long)

public long ToMinutes(long arg0)

Parameters

arg0 long

long

Returns

long

long

ToNanos(long)

public long ToNanos(long arg0)

Parameters

arg0 long

long

Returns

long

long

ToSeconds(long)

public long ToSeconds(long arg0)

Parameters

arg0 long

long

Returns

long

long

ValueOf(String)

public static TimeUnit ValueOf(String arg0)

Parameters

arg0 String

String

Returns

TimeUnit

TimeUnit

Values()

public static TimeUnit[] Values()

Returns

TimeUnit[]

TimeUnit