types/src/main/java/com/google/common/html/types/SafeHtmlBuilder.java
public SafeHtmlBuilder setListWithPrefix(@CompileTimeConstant final String prefix, String value) {
    if (prefix.trim().length() == 0) {
      throw new IllegalArgumentException("Prefix cannot be empty string");
    }
    return setAttribute("list", prefix + "-" + value);
  }
public SafeHtmlBuilder setListWithPrefix(@CompileTimeConstant final String prefix, String value) {
    if (prefix.trim().length() == 0) {
      throw new IllegalArgumentException("Prefix cannot be empty string");
    }
    return setAttribute("list", prefix + "-" + value);
  }
public SafeHtmlBuilder setListWithPrefix ( @ CompileTimeConstant final String prefix , String value ) { if ( prefix . trim ( ) . length ( ) == 0 ) { throw new IllegalArgumentException ( "Prefix cannot be empty string" ) ; } return setAttribute ( "list" , prefix + "-" + value ) ; }
Sets the {@code list} attribute for this element to a {@link CompileTimeConstant} {@code
prefix} and a {@code value} joined by a hyphen.

@throws IllegalArgumentException if {@code prefix} is an empty string
Sets the { @code list } attribute for this element to a { @link CompileTimeConstant } { @code prefix } and a { @code value } joined by a hyphen .