package jp.gr.java_conf.dyama.rink.parser;

/**
 *  feature interface for parsing
 * @author Hiroyasu Yamada
 *
 */
public interface Feature {

    /**
     * encode a feature information into positive unique integer.
     * @return encoded integer
     */
    public int encode();

    /**
     * decode an integer to a feature information
     * @param code encoded integer. throw IllegalArgumentExcption if code is negative number.
     */
    public void decode(int code);

}

package jp.gr.java_conf.dyama.rink.parser;

/**
 *  feature interface for parsing
 * @author Hiroyasu Yamada
 *
 */
public interface Feature {

    /**
     * Encodes the feature information into the positive unique integer.
     * @return the encoded integer
     */
    public int encode();

    /**
     * Decodes the code to the feature information
     * @param code the code
     * @throws IllegalArgumentExcption if the code is a negative number.
     */
    public void decode(int code);

}

revise API doc.