Class AbstractDataObjectReference<T extends DataObject,S extends DataObjectStep<?>>
java.lang.Object
org.opendaylight.yangtools.binding.impl.AbstractDataObjectReference<T,S>
- All Implemented Interfaces:
Serializable
,DataObjectReference<T>
,Immutable
- Direct Known Subclasses:
DataObjectIdentifierImpl
,DataObjectReferenceImpl
,InstanceIdentifier
public abstract sealed class AbstractDataObjectReference<T extends DataObject,S extends DataObjectStep<?>>
extends Object
implements DataObjectReference<T>
permits DataObjectIdentifierImpl<T>, DataObjectReferenceImpl<T>, InstanceIdentifier<T>
Base implementation of
DataObjectReference
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.binding.DataObjectReference
DataObjectReference.Builder<T extends DataObject>, DataObjectReference.WithKey<T extends EntryObject<T,
K>, K extends Key<T>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractDataObjectReference
(Iterable<? extends @NonNull S> steps) -
Method Summary
Modifier and TypeMethodDescriptionprotected static final <T> Iterable
<? extends T> protected @NonNull Class
<?> contract()
final boolean
protected static final <T> @NonNull T
final int
hashCode()
lastStep()
Return the last step of this reference.steps()
Return the steps of this reference.protected final void
throwNSE()
protected @NonNull Object
final String
toString()
protected final Object
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opendaylight.yangtools.binding.DataObjectReference
builder, getPathArguments, isExact, isWildcarded, toBuilder, toIdentifier, toLegacy
-
Constructor Details
-
AbstractDataObjectReference
-
-
Method Details
-
steps
Description copied from interface:DataObjectReference
Return the steps of this reference. ReturnedIterable
does not support removals and contains one or more non-null items.- Specified by:
steps
in interfaceDataObjectReference<T extends DataObject>
- Returns:
- the steps of this reference
-
lastStep
Description copied from interface:DataObjectReference
Return the last step of this reference.- Specified by:
lastStep
in interfaceDataObjectReference<T extends DataObject>
- Returns:
- the last step
-
hashCode
public final int hashCode() -
equals
-
toString
-
contract
-
getLast
-
throwNSE
- Throws:
NotSerializableException
-
writeReplace
- Throws:
ObjectStreamException
-
toSerialForm
-
concat
-