test_class.file: everrest-core/src/test/java/org/everrest/core/impl/header/AcceptTokenTest.java
test_class.identifier: AcceptTokenTest
test_case.body: @Test(expected = IllegalArgumentException.class)
      public void throwExceptionWhenAcceptTokenHeaderContainsInvalidCharacters() {
          AcceptToken.valueOf("utf[8");
      }
test_case.class_method_signature: AcceptTokenTest.throwExceptionWhenAcceptTokenHeaderContainsInvalidCharacters()
test_case.full_signature: @Test(expected = IllegalArgumentException.class) public void throwExceptionWhenAcceptTokenHeaderContainsInvalidCharacters()
test_case.identifier: throwExceptionWhenAcceptTokenHeaderContainsInvalidCharacters
test_case.invocations: valueOf
test_case.modifiers: @Test(expected = IllegalArgumentException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void throwExceptionWhenAcceptTokenHeaderContainsInvalidCharacters()
focal_class.declarator: PARAMETERS_SEPARATOR = ';'
focal_class.modifier: private static final
focal_class.original_string: private static final char PARAMETERS_SEPARATOR = ';';
focal_class.type: char
focal_class.var_name: PARAMETERS_SEPARATOR
focal_class.declarator: token
focal_class.modifier: private final
focal_class.original_string: private final Token token;
focal_class.type: Token
focal_class.var_name: token
focal_class.declarator: qValue
focal_class.modifier: private final
focal_class.original_string: private final float qValue;
focal_class.type: float
focal_class.var_name: qValue
focal_class.file: everrest-core/src/main/java/org/everrest/core/impl/header/AcceptToken.java
focal_class.identifier: AcceptToken
focal_class.interfaces: implements QualityValue
focal_class.class_method_signature: AcceptToken.valueOf(String value)
focal_class.full_signature: public static AcceptToken valueOf(String value)
focal_class.identifier: valueOf
focal_class.modifiers: public static
focal_class.parameters: (String value)
focal_class.return: AcceptToken
focal_class.signature: AcceptToken valueOf(String value)
focal_class.class_method_signature: AcceptToken.AcceptToken(String token)
focal_class.full_signature: public  AcceptToken(String token)
focal_class.identifier: AcceptToken
focal_class.modifiers: public
focal_class.parameters: (String token)
focal_class.signature:  AcceptToken(String token)
focal_class.class_method_signature: AcceptToken.AcceptToken(String token, float qValue)
focal_class.full_signature: public  AcceptToken(String token, float qValue)
focal_class.identifier: AcceptToken
focal_class.modifiers: public
focal_class.parameters: (String token, float qValue)
focal_class.signature:  AcceptToken(String token, float qValue)
focal_class.class_method_signature: AcceptToken.getToken()
focal_class.full_signature: public Token getToken()
focal_class.identifier: getToken
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Token
focal_class.signature: Token getToken()
focal_class.class_method_signature: AcceptToken.getQvalue()
focal_class.full_signature: @Override public float getQvalue()
focal_class.identifier: getQvalue
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: float
focal_class.signature: float getQvalue()
focal_class.class_method_signature: AcceptToken.isCompatible(AcceptToken other)
focal_class.full_signature: public boolean isCompatible(AcceptToken other)
focal_class.identifier: isCompatible
focal_class.modifiers: public
focal_class.parameters: (AcceptToken other)
focal_class.return: boolean
focal_class.signature: boolean isCompatible(AcceptToken other)
focal_class.class_method_signature: AcceptToken.isCompatible(Token other)
focal_class.full_signature: public boolean isCompatible(Token other)
focal_class.identifier: isCompatible
focal_class.modifiers: public
focal_class.parameters: (Token other)
focal_class.return: boolean
focal_class.signature: boolean isCompatible(Token other)
focal_class.class_method_signature: AcceptToken.isCompatible(String other)
focal_class.full_signature: public boolean isCompatible(String other)
focal_class.identifier: isCompatible
focal_class.modifiers: public
focal_class.parameters: (String other)
focal_class.return: boolean
focal_class.signature: boolean isCompatible(String other)
focal_class.class_method_signature: AcceptToken.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: AcceptToken.equals(Object o)
focal_class.full_signature: @Override public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_class.class_method_signature: AcceptToken.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_method.body: public static AcceptToken valueOf(String value) {
          if (value == null) {
              throw new IllegalArgumentException();
          }
          try {
              int separator = scan(value, PARAMETERS_SEPARATOR);
              boolean hasParameters = charAtIs(value, separator, PARAMETERS_SEPARATOR);
              String token = hasParameters ? value.substring(0, separator).trim() : value.trim();
              token = token.trim();
  
              int i;
              if ((i = isToken(token)) != -1) {
                  throw new IllegalArgumentException(String.format("Not valid character at index %d in %s", i, token));
              }
  
              if (hasParameters) {
                  Map<String, String> param = new HeaderParameterParser().parse(value);
                  if (param.containsKey(QVALUE)) {
                      return new AcceptToken(token, parseQualityValue(param.get(QVALUE)));
                  }
              }
  
              return new AcceptToken(token);
          } catch (ParseException e) {
              throw new IllegalArgumentException(e);
          }
      }
focal_method.class_method_signature: AcceptToken.valueOf(String value)
focal_method.full_signature: public static AcceptToken valueOf(String value)
focal_method.identifier: valueOf
focal_method.invocations: scan charAtIs trim substring trim trim isToken format parse containsKey parseQualityValue get
focal_method.modifiers: public static
focal_method.parameters: (String value)
focal_method.return: AcceptToken
focal_method.signature: AcceptToken valueOf(String value)