public enum SnmpVersion extends Enum<SnmpVersion>
| Enum Constant and Description | 
|---|
V1
The V1. 
 | 
V2_INFORM
The V2_ inform. 
 | 
V2c
The V2c. 
 | 
V3
The V3. 
 | 
V3_INFORM
The V3_ inform. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
intValue()
Gets the integer representation of the SNMP version. 
 | 
boolean | 
isV1()
Checks if is v1. 
 | 
boolean | 
isV2()
Checks if is v2. 
 | 
boolean | 
isV3()
Checks if is v3. 
 | 
String | 
stringValue()
Gets the string representation of the SNMP version. 
 | 
static SnmpVersion | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static SnmpVersion[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final SnmpVersion V1
public static final SnmpVersion V2c
public static final SnmpVersion V3
public static final SnmpVersion V2_INFORM
public static final SnmpVersion V3_INFORM
public static SnmpVersion[] values()
for (SnmpVersion c : SnmpVersion.values()) System.out.println(c);
public static SnmpVersion valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String stringValue()
public int intValue()
public boolean isV1()
public boolean isV2()
public boolean isV3()
Copyright © 2021. All rights reserved.