Class Uint16.Support

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

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

    • Support

      public Support()
  • Method Details

    • fromString

      public Either<Uint16,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