T - Canonical value type@Beta @NonNullByDefault public interface CanonicalValue<T extends CanonicalValue<T>> extends Comparable<T>, Immutable, Serializable
Serializable
Aside from providing the ability to hold a canonical value, this interface and its implementations support carrying
additional information about how the value has been validated -- allowing efficient interchange of already-validated
values between users. validator() provides the link to a CanonicalValueValidator which has declared
the value conform to it. Users can query the validator to establish whether the value needs to be further validated
to conform to their requirement.
| Modifier and Type | Method and Description |
|---|---|
CanonicalValueSupport<T> |
support()
Return the
CanonicalValue associated with this type. |
String |
toCanonicalString()
Return the canonical string representation of this value.
|
default CanonicalValueValidator<T,? extends T> |
validator()
Return a
CanonicalValueValidator associated with this value's validated type. |
compareToString toCanonicalString()
CanonicalValueSupport<T> support()
CanonicalValue associated with this type. It can be used to create new instances of this
representation.CanonicalValue instance.default CanonicalValueValidator<T,? extends T> validator()
CanonicalValueValidator associated with this value's validated type.CanonicalValueValidator instance.Copyright © 2019 OpenDaylight. All rights reserved.