org.omg.CosTime
Class ComparisonType

java.lang.Object
  extended by org.omg.CosTime.ComparisonType
All Implemented Interfaces:
java.io.Serializable, org.omg.CORBA.portable.IDLEntity

public final class ComparisonType
extends java.lang.Object
implements org.omg.CORBA.portable.IDLEntity

ComparaisonType defines the two types of time comparaison that are supported. IntervalC comparaison does the comparaison taking into account the error envelope. MidC comparaison just compare the base times. A Midc comparaison can never return TCIndeterminate.

See Also:
Serialized Form

Field Summary
static int _IntervalC
          Enum member IntervalC value
static int _MidC
          Enum member MidC value
static ComparisonType IntervalC
          Enum member IntervalC
static ComparisonType MidC
          Enum member MidC
 
Method Summary
static ComparisonType from_int(int value)
          Return a enum member from its value.
 java.lang.Object readResolve()
          Maintains singleton property for serialized enums.
 java.lang.String toString()
          Return a string representation
 int value()
          Return the internal member value
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_IntervalC

public static final int _IntervalC
Enum member IntervalC value

See Also:
Constant Field Values

IntervalC

public static final ComparisonType IntervalC
Enum member IntervalC


_MidC

public static final int _MidC
Enum member MidC value

See Also:
Constant Field Values

MidC

public static final ComparisonType MidC
Enum member MidC

Method Detail

readResolve

public java.lang.Object readResolve()
                             throws java.io.ObjectStreamException
Maintains singleton property for serialized enums. Issue 4271: IDL/Java issue, Mapping for IDL enum.

Throws:
java.io.ObjectStreamException

value

public int value()
Return the internal member value

Returns:
the member value

from_int

public static ComparisonType from_int(int value)
Return a enum member from its value.

Parameters:
value - An enum value
Returns:
An enum member

toString

public java.lang.String toString()
Return a string representation

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the enumeration