Class Uint8.Support

All Implemented Interfaces:
Immutable, CanonicalValueSupport<Uint8>, CanonicalValueValidator<Uint8,Uint8>
Enclosing class:
Uint8

public static final class Uint8.Support extends AbstractCanonicalValueSupport<Uint8>
  • Constructor Details

    • Support

      public Support()
  • Method Details

    • fromString

      public Either<Uint8,CanonicalValueViolation> fromString(String str)
      Description copied from interface: CanonicalValueSupport
      Create a instance for a string representation. Implementations of this method are required to perform checks equivalent to the YANG data model restrictions attached to the corresponding YANG type. Non-canonical format strings must be accepted and result in objects equal to objects obtained from the corresponding canonical format.
      Parameters:
      str - String representation
      Returns:
      A CanonicalValue instance or CanonicalValueViolation if str does not conform