public interface YangType<T>
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEqual(java.lang.Object obj)
Compares type of obj with this object to see if they can be equal.
|
void |
check()
Checks that the value of this object is not null.
|
YangType<T> |
clone()
Clones this object and its value.
|
T |
getValue() |
void |
setValue(java.lang.String s)
Sets the value of this object using a String.
|
void |
setValue(T value)
Sets the value of this object using a value of type T.
|
void setValue(java.lang.String s)
throws YangException
s - A string containing the new value to set.YangException - If an invariant was broken during assignment, or
if value could not be parsed from s.void setValue(T value) throws YangException
value - The new value to set.YangException - If an invariant was broken during assignment.T getValue()
void check()
throws YangException
YangException - If the value of this object is null.boolean canEqual(java.lang.Object obj)
obj - Object to compare type with.