code: public DateFormat setBooleanAttribute(BooleanAttribute key, boolean value)
      {
          if(key.equals(DateFormat.BooleanAttribute.PARSE_PARTIAL_MATCH)) {
              key = DateFormat.BooleanAttribute.PARSE_PARTIAL_LITERAL_MATCH;
          }
          if(value)
          {
              booleanAttributes.add(key);
          }
          else
          {
              booleanAttributes.remove(key);
          }
  
          return this;
      }
docs: Sets a boolean attribute for this instance. Aspects of DateFormat leniency are controlled by
  boolean attributes.
  
  @see BooleanAttribute