Class AbstractAugmentable<T extends Augmentable<T>>
java.lang.Object
org.opendaylight.yangtools.binding.lib.AbstractAugmentable<T>
- Type Parameters:
T
- Augmentable type
- All Implemented Interfaces:
Augmentable<T>
- Direct Known Subclasses:
AbstractEntryObject
public abstract class AbstractAugmentable<T extends Augmentable<T>>
extends Object
implements Augmentable<T>
Abstract base class for implementing immutable
Augmentable
classes. This class is provided as a convenience.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
AbstractAugmentable
(ImmutableMap<Class<? extends Augmentation<T>>, Augmentation<T>> augmentations) protected
AbstractAugmentable
(Map<Class<? extends Augmentation<T>>, Augmentation<T>> augmentations) protected
AbstractAugmentable
(AbstractAugmentable<T> other) -
Method Summary
Modifier and TypeMethodDescriptionfinal <A extends Augmentation<T>>
Aaugmentation
(Class<A> augmentationType) Returns instance of augmentation, if present.final ImmutableMap
<Class<? extends Augmentation<T>>, Augmentation<T>> Returns map of all augmentations.abstract boolean
abstract int
hashCode()
abstract String
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opendaylight.yangtools.binding.Augmentable
augmentationOrElseThrow, augmentationOrElseThrow
-
Constructor Details
-
AbstractAugmentable
protected AbstractAugmentable() -
AbstractAugmentable
-
AbstractAugmentable
protected AbstractAugmentable(ImmutableMap<Class<? extends Augmentation<T>>, Augmentation<T>> augmentations) -
AbstractAugmentable
-
-
Method Details
-
augmentation
Description copied from interface:Augmentable
Returns instance of augmentation, if present.- Specified by:
augmentation
in interfaceAugmentable<T extends Augmentable<T>>
- Type Parameters:
A
- Type capture for augmentation type- Parameters:
augmentationType
- Type of augmentation to be returned- Returns:
- instance of
A
, ornull
if the augmentationType is not present
-
augmentations
Description copied from interface:Augmentable
Returns map of all augmentations.- Specified by:
augmentations
in interfaceAugmentable<T extends Augmentable<T>>
- Returns:
- map of all augmentations.
-
hashCode
public abstract int hashCode() -
equals
-
toString
-