Class CachingDerivedString<T extends CachingDerivedString<T>>
- java.lang.Object
-
- org.opendaylight.yangtools.yang.common.DerivedString<T>
-
- org.opendaylight.yangtools.yang.common.CachingDerivedString<T>
-
- Type Parameters:
T
- derived string type
- All Implemented Interfaces:
Serializable
,Comparable<T>
,Immutable
,MutationBehaviour<Immutable>
,CanonicalValue<T>
@Beta @NonNullByDefault public abstract class CachingDerivedString<T extends CachingDerivedString<T>> extends DerivedString<T>
A opportunistically-cachingDerivedString
. Canonical name is cached at first encounter.- Author:
- Robert Varga
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CachingDerivedString()
protected
CachingDerivedString(String str)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String
computeCanonicalString()
Return the canonical string representation of this object's value.String
toCanonicalString()
Return the canonical string representation of this value.-
Methods inherited from class org.opendaylight.yangtools.yang.common.DerivedString
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opendaylight.yangtools.yang.common.CanonicalValue
support, validator
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Constructor Detail
-
CachingDerivedString
protected CachingDerivedString()
-
CachingDerivedString
protected CachingDerivedString(String str)
-
-
Method Detail
-
toCanonicalString
public final String toCanonicalString()
Description copied from interface:CanonicalValue
Return the canonical string representation of this value.- Returns:
- Canonical string
-
computeCanonicalString
protected abstract String computeCanonicalString()
Return the canonical string representation of this object's value.- Returns:
- Canonical string
-
-