public final class WatchType extends Object
For example, if a Watch packet has a type of WatchType.String, the represented variable is treated as string in the Console.
This class is fully threadsafe.
| Modifier and Type | Field and Description |
|---|---|
static WatchType |
Address
Instructs the Console to treat a Watch value as address.
|
static WatchType |
Boolean
Instructs the Console to treat a Watch value as boolean.
|
static WatchType |
Char
Instructs the Console to treat a Watch value as char.
|
static WatchType |
Float
Instructs the Console to treat a Watch value as float.
|
static WatchType |
Integer
Instructs the Console to treat a Watch value as integer.
|
static WatchType |
Object
Instructs the Console to treat a Watch value as object.
|
static WatchType |
String
Instructs the Console to treat a Watch value as string.
|
static WatchType |
Timestamp
Instructs the Console to treat a Watch value as timestamp.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Indicates whether some other object is equal to this one.
|
int |
getIntValue()
Returns the integer value of this enum.
|
boolean |
greater(com.gurock.smartinspect.Enum en)
Indicates whether the integer value of this Enum is greater
than the integer value of some other Enum.
|
boolean |
greaterEqual(com.gurock.smartinspect.Enum en)
Indicates whether the integer value of this Enum is greater
than or equal to the integer value of some other Enum.
|
boolean |
less(com.gurock.smartinspect.Enum en)
Indicates whether the integer value of this Enum is less than
the integer value of some other Enum.
|
boolean |
lessEqual(com.gurock.smartinspect.Enum en)
Indicates whether the integer value of this Enum is less than
or equal to the integer value of some other Enum.
|
String |
toString()
Overridden.
|
public static final WatchType Char
public static final WatchType String
public static final WatchType Integer
public static final WatchType Float
public static final WatchType Boolean
public static final WatchType Address
public static final WatchType Timestamp
public static final WatchType Object
public String toString()
public int getIntValue()
public boolean equals(Object o)
This method returns true if the supplied Object is an Enum and has the same integer value as returned by the getIntValue() method of this object. If the supplied Object is not an Enum, this method calls the equals method of the parent class.
public boolean less(com.gurock.smartinspect.Enum en)
en - The enum to compare this enum with.public boolean lessEqual(com.gurock.smartinspect.Enum en)
en - The enum to compare this enum with.public boolean greater(com.gurock.smartinspect.Enum en)
en - The enum to compare this enum with.public boolean greaterEqual(com.gurock.smartinspect.Enum en)
en - The enum to compare this enum with.Copyright © 2023. All rights reserved.