org.snmp4j.smi.Null.getSyntax()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(206)

本文整理了Java中org.snmp4j.smi.Null.getSyntax()方法的一些代码示例,展示了Null.getSyntax()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Null.getSyntax()方法的具体详情如下:
包路径:org.snmp4j.smi.Null
类名称:Null
方法名:getSyntax

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);
}

相关文章