java.lang.Object
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.flowspec.rev200120.Fragment
All Implemented Interfaces:
Serializable, org.opendaylight.yangtools.binding.BindingObject, org.opendaylight.yangtools.binding.BitsTypeObject, org.opendaylight.yangtools.binding.TypeObject

@Generated("mdsal-binding-generator") public class Fragment extends Object implements org.opendaylight.yangtools.binding.BitsTypeObject, Serializable

This class represents the following YANG schema fragment defined in module bgp-flowspec

 typedef fragment {
   type bits {
     bit last {
       position 4;
     }
     bit first {
       position 5;
     }
     bit is-a {
       position 6;
     }
     bit do-not {
       position 7;
     }
   }
 }
 
See Also:
  • Field Details

    • VALID_NAMES

      protected static final com.google.common.collect.ImmutableSet<String> VALID_NAMES
  • Constructor Details

    • Fragment

      public Fragment(boolean _doNot, boolean _first, boolean _isA, boolean _last)
    • Fragment

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

    • getDefaultInstance

      public static Fragment getDefaultInstance(String defaultValue)
    • getLast

      public boolean getLast()
    • getFirst

      public boolean getFirst()
    • getIsA

      public boolean getIsA()
    • getDoNot

      public boolean getDoNot()
    • validNames

      public com.google.common.collect.ImmutableSet<String> validNames()
      Specified by:
      validNames in interface org.opendaylight.yangtools.binding.BitsTypeObject
    • values

      public boolean[] values()
      Specified by:
      values in interface org.opendaylight.yangtools.binding.BitsTypeObject
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object