com.tailf.jnc.YangUInt16 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jnc Show documentation
Show all versions of jnc Show documentation
JNC (Java NETCONF Client) is the name of a Java library for communicating with NETCONF agents.
The newest version!
package com.tailf.jnc;
/**
* Implements the built-in YANG data type "uint16".
*
* @author [email protected]
*/
public class YangUInt16 extends YangInt32 {
private static final long serialVersionUID = 1L;
/**
* Creates a YangUInt16 object from a String.
*
* @param s The string.
* @throws YangException If value could not be parsed from s or if the
* parsed value is negative or larger than 0xffff.
*/
public YangUInt16(String s) throws YangException {
super(s);
setMinMax(0, 0xffff);
check();
}
/**
* Creates a YangUInt16 object from a Number. This may involve rounding or
* truncation.
*
* @param value The initial value of the new YangUInt16 object.
* @throws YangException If value is negative or larger than 0xffff.
*/
public YangUInt16(Number value) throws YangException {
super(value);
setMinMax(0, 0xffff);
check();
}
/*
* (non-Javadoc)
*
* @see com.tailf.jnc.YangBaseType#cloneShallow()
*/
@Override
protected YangUInt16 cloneShallow() throws YangException {
return new YangUInt16(toString());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy