本文整理了Java中org.snmp4j.smi.Null.getSyntax()
方法的一些代码示例,展示了Null.getSyntax()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Null.getSyntax()
方法的具体详情如下:
包路径:org.snmp4j.smi.Null
类名称:Null
方法名:getSyntax
暂无
代码示例来源:origin: org.kaazing/snmp4j
public String toString() {
switch (getSyntax()) {
case SMIConstants.EXCEPTION_NO_SUCH_OBJECT:
return "noSuchObject";
case SMIConstants.EXCEPTION_NO_SUCH_INSTANCE:
return "noSuchInstance";
case SMIConstants.EXCEPTION_END_OF_MIB_VIEW:
return "endOfMibView";
}
return "Null";
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j
/**
* Returns the syntax of this Null variable.
* @return
* {@link SMIConstants#SYNTAX_NULL} or one of the exception syntaxes
* {@link SMIConstants#EXCEPTION_NO_SUCH_OBJECT},
* {@link SMIConstants#EXCEPTION_NO_SUCH_INSTANCE}, or
* {@link SMIConstants#EXCEPTION_END_OF_MIB_VIEW}
* @since 1.7
*/
public final long toLong() {
return getSyntax();
}
代码示例来源:origin: org.snmp4j/snmp4j
public String toString() {
switch (getSyntax()) {
case SMIConstants.EXCEPTION_NO_SUCH_OBJECT:
return "noSuchObject";
case SMIConstants.EXCEPTION_NO_SUCH_INSTANCE:
return "noSuchInstance";
case SMIConstants.EXCEPTION_END_OF_MIB_VIEW:
return "endOfMibView";
}
return "Null";
}
代码示例来源:origin: org.snmp4j/snmp4j
/**
* Returns the syntax of this Null variable.
* @return
* {@link SMIConstants#SYNTAX_NULL} or one of the exception syntaxes
* {@link SMIConstants#EXCEPTION_NO_SUCH_OBJECT},
* {@link SMIConstants#EXCEPTION_NO_SUCH_INSTANCE}, or
* {@link SMIConstants#EXCEPTION_END_OF_MIB_VIEW}
* @since 1.7
*/
public final long toLong() {
return getSyntax();
}
代码示例来源:origin: org.kaazing/snmp4j
/**
* Returns the syntax of this Null variable.
* @return
* {@link SMIConstants#SYNTAX_NULL} or one of the exception syntaxes
* {@link SMIConstants#EXCEPTION_NO_SUCH_OBJECT},
* {@link SMIConstants#EXCEPTION_NO_SUCH_INSTANCE}, or
* {@link SMIConstants#EXCEPTION_END_OF_MIB_VIEW}
* @since 1.7
*/
public final int toInt() {
return getSyntax();
}
代码示例来源:origin: org.kaazing/snmp4j
public boolean equals(Object o) {
if (o instanceof Null) {
return (((Null) o).getSyntax() == getSyntax());
}
return false;
}
代码示例来源:origin: org.snmp4j/snmp4j
/**
* Returns the syntax of this Null variable.
* @return
* {@link SMIConstants#SYNTAX_NULL} or one of the exception syntaxes
* {@link SMIConstants#EXCEPTION_NO_SUCH_OBJECT},
* {@link SMIConstants#EXCEPTION_NO_SUCH_INSTANCE}, or
* {@link SMIConstants#EXCEPTION_END_OF_MIB_VIEW}
* @since 1.7
*/
public final int toInt() {
return getSyntax();
}
代码示例来源:origin: org.kaazing/snmp4j
public int hashCode() {
return getSyntax();
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j
public String toString() {
switch (getSyntax()) {
case SMIConstants.EXCEPTION_NO_SUCH_OBJECT:
return "noSuchObject";
case SMIConstants.EXCEPTION_NO_SUCH_INSTANCE:
return "noSuchInstance";
case SMIConstants.EXCEPTION_END_OF_MIB_VIEW:
return "endOfMibView";
}
return "Null";
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j
/**
* Returns the syntax of this Null variable.
* @return
* {@link SMIConstants#SYNTAX_NULL} or one of the exception syntaxes
* {@link SMIConstants#EXCEPTION_NO_SUCH_OBJECT},
* {@link SMIConstants#EXCEPTION_NO_SUCH_INSTANCE}, or
* {@link SMIConstants#EXCEPTION_END_OF_MIB_VIEW}
* @since 1.7
*/
public final int toInt() {
return getSyntax();
}
代码示例来源:origin: org.kaazing/snmp4j
/**
* Returns the syntax of this Null variable.
* @return
* {@link SMIConstants#SYNTAX_NULL} or one of the exception syntaxes
* {@link SMIConstants#EXCEPTION_NO_SUCH_OBJECT},
* {@link SMIConstants#EXCEPTION_NO_SUCH_INSTANCE}, or
* {@link SMIConstants#EXCEPTION_END_OF_MIB_VIEW}
* @since 1.7
*/
public final long toLong() {
return getSyntax();
}
代码示例来源:origin: org.snmp4j/snmp4j
public boolean equals(Object o) {
return (o instanceof Null) && (((Null) o).getSyntax() == getSyntax());
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j
public boolean equals(Object o) {
return (o instanceof Null) && (((Null) o).getSyntax() == getSyntax());
}
代码示例来源:origin: org.snmp4j/snmp4j
public int hashCode() {
return getSyntax();
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j
public int hashCode() {
return getSyntax();
}
代码示例来源:origin: org.kaazing/snmp4j
public int compareTo(Object o) {
return (getSyntax() - ((Null)o).getSyntax());
}
代码示例来源:origin: org.kaazing/snmp4j
public void encodeBER(OutputStream outputStream) throws java.io.IOException {
BER.encodeHeader(outputStream, (byte)getSyntax(), 0);
}
代码示例来源:origin: org.snmp4j/snmp4j
public int compareTo(Variable o) {
return (getSyntax() - o.getSyntax());
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j
public void encodeBER(OutputStream outputStream) throws java.io.IOException {
BER.encodeHeader(outputStream, (byte)getSyntax(), 0);
}
代码示例来源:origin: org.snmp4j/snmp4j
public void encodeBER(OutputStream outputStream) throws java.io.IOException {
BER.encodeHeader(outputStream, (byte)getSyntax(), 0);
}
内容来源于网络,如有侵权,请联系作者删除!