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,CanonicalValue<T>
@Beta
@NonNullByDefault
public abstract class CachingDerivedString<T extends CachingDerivedString<T>>
extends DerivedString<T>
A opportunistically-caching
DerivedString. Canonical name is cached at first encounter.- Author:
- Robert Varga
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotected -
Method Summary
Methods inherited from class org.opendaylight.yangtools.yang.common.DerivedString
equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opendaylight.yangtools.yang.common.CanonicalValue
support, validatorMethods inherited from interface java.lang.Comparable
compareTo
-
Constructor Details
-
CachingDerivedString
protected CachingDerivedString() -
CachingDerivedString
-
-
Method Details
-
toCanonicalString
Description copied from interface:CanonicalValueReturn the canonical string representation of this value.- Returns:
- Canonical string
-
computeCanonicalString
Return the canonical string representation of this object's value.- Returns:
- Canonical string
-