All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.axellience.vueroutergwt.client.RouterMode Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
package com.axellience.vueroutergwt.client;

/**
 * @author Adrien Baron
 */
public enum RouterMode
{
    HASH("hash"), HISTORY("history"), ABSTRACT("abstract");

    String value;

    RouterMode(String value)
    {
        this.value = value;
    }

    public String getValue()
    {
        return value;
    }

    public static RouterMode fromValue(String value)
    {
        if ("hash".equals(value))
            return RouterMode.HASH;
        if ("history".equals(value))
            return RouterMode.HISTORY;
        if ("abstract".equals(value))
            return RouterMode.ABSTRACT;

        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy