Package org.semanticweb.owlapi.annotations

Examples of org.semanticweb.owlapi.annotations.HasPriority


public class HasPriorityComparator<T> implements Comparator<T>, Serializable {

    private static final long serialVersionUID = 40000L;

    private static double getPriority(@Nonnull Object p) {
        HasPriority priority = p.getClass().getAnnotation(HasPriority.class);
        if (priority != null) {
            return priority.value();
        }
        // if the object does not have a priority annotation, only use
        // it last
        return Double.MAX_VALUE;
    }
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.annotations.HasPriority

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.