public class YangString extends YangBaseString
| Modifier and Type | Field and Description |
|---|---|
protected T |
value
The value of this object, of which this class is a wrapper for.
|
| Constructor and Description |
|---|
YangString(java.lang.String value)
Creates a YangString object from a java.lang.String.
|
| 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.
|
com.tailf.jnc.YangBaseType<T> |
clone()
Clones this object and its value.
|
boolean |
equals(java.lang.Object obj)
Compares this object with another object for equality.
|
T |
getValue() |
int |
hashCode() |
java.lang.String |
toString() |
cloneShallow, exact, fromString, max, min, pattern, pattern, setValue, wsCollapse, wsReplaceprotected T value
public YangString(java.lang.String value)
throws YangException
value - The Java String.YangException - If an invariant was broken during assignment.public boolean canEqual(java.lang.Object obj)
canEqual in interface YangType<java.lang.String>canEqual in class YangBaseStringobj - Object to compare type with.public T getValue()
public void check()
throws YangException
YangTypecheck in interface YangType<T>YangException - If the value of this object is null.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The object to compare with.public int hashCode()
hashCode in class java.lang.Object