java.lang.Object
org.opendaylight.yang.gen.v1.http.openconfig.net.yang.network.instance.rev151018.network.instance.top.network.instances.network.instance.protocols.ProtocolKey
All Implemented Interfaces:
Serializable, org.opendaylight.yangtools.concepts.Identifier, org.opendaylight.yangtools.concepts.Immutable, org.opendaylight.yangtools.yang.binding.Key<Protocol>

@Generated("mdsal-binding-generator") public class ProtocolKey extends Object implements org.opendaylight.yangtools.yang.binding.Key<Protocol>
This class represents the key of Protocol class.
See Also:
  • Constructor Details

    • ProtocolKey

      public ProtocolKey(@NonNull InstallProtocolType _identifier, @NonNull String _name)
      Constructs an instance.
      Parameters:
      _identifier - the entity identifier
      _name - the entity name
      Throws:
      NullPointerException - if any of the arguments are null
    • ProtocolKey

      public ProtocolKey(ProtocolKey source)
      Creates a copy from Source Object.
      Parameters:
      source - Source object
  • Method Details

    • getIdentifier

      public @NonNull InstallProtocolType getIdentifier()
      Return identifier, guaranteed to be non-null.
      Returns:
      InstallProtocolType identifier, guaranteed to be non-null.
    • getName

      public @NonNull String getName()
      Return name, guaranteed to be non-null.
      Returns:
      String name, guaranteed to be non-null.
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface org.opendaylight.yangtools.concepts.Identifier
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Specified by:
      equals in interface org.opendaylight.yangtools.concepts.Identifier
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Specified by:
      toString in interface org.opendaylight.yangtools.concepts.Identifier
      Overrides:
      toString in class Object