code: @SuppressWarnings("unchecked")
      public Comparable tokenAsComparable(String tokenAsString) {
          Token token = tokenFactory.fromString(tokenAsString);
          ByteBuffer bb = tokenFactory.toByteArray(token);
          return (Comparable) tokenType.compose(bb);
      }
docs: Returns the specified token as a {@link java.lang.Comparable}.
  
  @param tokenAsString a token represented as a {@link java.lang.String}.
  @return the specified token as a {@link java.lang.Comparable}.