public class SnmpTimeTicks extends SnmpUInt32
Modifier and Type | Field and Description |
---|---|
static byte |
ASNTYPE
Defines the ASN.1 type for this object.
|
Constructor and Description |
---|
SnmpTimeTicks()
Constructs the default counter object.
|
SnmpTimeTicks(long value)
Constructs the object with the specified value.
|
SnmpTimeTicks(Long value)
Constructs the object with the specified value.
|
SnmpTimeTicks(SnmpTimeTicks second)
Constructs a new object with the same value as the passed object.
|
SnmpTimeTicks(SnmpUInt32 uint32)
Constructs a new object with the value constained in the SnmpUInt32
object.
|
SnmpTimeTicks(String value)
Simple class constructor that is used to create an initialize the new
instance with the unsigned value decoded from the passed String argument.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a new object that is a duplicate of the current object.
|
SnmpSyntax |
duplicate()
Creates a new object that is a duplicate of the current object.
|
String |
toString()
Returns the string representation of the object.
|
byte |
typeId()
Returns the ASN.1 type specific to this object.
|
public static final byte ASNTYPE
public SnmpTimeTicks()
public SnmpTimeTicks(long value)
value
- The default value for the object.public SnmpTimeTicks(Long value)
value
- The default value for the object.public SnmpTimeTicks(SnmpTimeTicks second)
second
- The object to recover values from.public SnmpTimeTicks(SnmpUInt32 uint32)
uint32
- The SnmpUInt32 object to copy.public SnmpTimeTicks(String value)
Simple class constructor that is used to create an initialize the new instance with the unsigned value decoded from the passed String argument. If the decoded argument is malformed, null, or evaluates to a negative value then an exception is generated.
The value passed to the constructor should be the number of milliseconds since epoch, as defined by RFC 1155.
value
- The string encoded value of TimeTicksNumberFormatException
- Thrown if the passed value is malformed and cannot be parsed.IllegalArgumentException
- Throws if the passed value evaluates to a negative value.NullPointerException
- Throws if the passed value is a null reference.public byte typeId()
typeId
in interface SnmpSyntax
typeId
in class SnmpUInt32
public SnmpSyntax duplicate()
duplicate
in interface SnmpSyntax
duplicate
in class SnmpUInt32
public Object clone()
clone
in class SnmpUInt32
public String toString()
toString
in class SnmpUInt32
Copyright © 2021. All rights reserved.