com.scalacraft.domain.v2.binary.unconstrained
      
    
      
      
    
      
      
    
      
      
    
      
      
    
      
      
    
      
      
    
      
      
    
      
      
    
      
      
    
      
      
    
      
      
    
      
      
    
      
      
    
      An optional octet value
      
    
      
      
    
      
      
    
      
      
    
      
An
Octetrepresents an integer in the range [0, 255].This class does not constrain the value of the octet beyond requiring a non-null constructor argument.
The value maybe outside the given range or undefined.
Pattern Matching
Pattern matching is supported as the following examples demonstrate,
The match target can be a string,
A null or whitespace string will match to Octet(None) while a non-hex value will not match.
Implicit Conversions
Implicit conversions exists which allow an instance of
Octetto be used when anOption[Int]orOption[String]is required.A conversion to an option of the constrained version of this class is also available.
An optional octet value