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

org.daisy.common.priority.Priority Maven / Gradle / Ivy

The newest version!
package org.daisy.common.priority;

/**
 * Possible priorities associated to a task
 */
public enum Priority{
                LOW,
                MEDIUM,
                HIGH;
                //for efficiency 
                private static final int size = Priority.values().length;
                /*
                 * Normalized numerical value for this piority
                 */
                public double asDouble(){
                        return this.ordinal()/(double)(size-1);
                }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy