Class OWLLiteralComparator

  • All Implemented Interfaces:
    java.util.Comparator<org.semanticweb.owlapi.model.OWLLiteral>

    public final class OWLLiteralComparator
    extends java.lang.Object
    implements java.util.Comparator<org.semanticweb.owlapi.model.OWLLiteral>
    A very basic literal comparator. Not fully spec conformant.

    See: http://xmlbeans.apache.org/docs/2.1.0/guide/conXMLBeansSupportBuiltInSchemaTypes.html http://iswc2011.semanticweb.org/fileadmin/iswc/Papers/Workshops/SSWS/Emmons-et-all-SSWS2011.pdf https://msdn.microsoft.com/en-us/library/ms191231.aspx

    See Also:
    OWLLiteral
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static @NonNull java.util.Comparator<org.semanticweb.owlapi.model.OWLLiteral> COMPARATOR  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(@NonNull org.semanticweb.owlapi.model.OWLLiteral l1, @NonNull org.semanticweb.owlapi.model.OWLLiteral l2)  
      static boolean isNumeric​(@NonNull org.semanticweb.owlapi.model.OWLLiteral literal)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Field Detail

      • COMPARATOR

        public static final @NonNull java.util.Comparator<org.semanticweb.owlapi.model.OWLLiteral> COMPARATOR
    • Constructor Detail

      • OWLLiteralComparator

        public OWLLiteralComparator()
    • Method Detail

      • compare

        public int compare​(@NonNull org.semanticweb.owlapi.model.OWLLiteral l1,
                           @NonNull org.semanticweb.owlapi.model.OWLLiteral l2)
        Specified by:
        compare in interface java.util.Comparator<org.semanticweb.owlapi.model.OWLLiteral>
      • isNumeric

        public static boolean isNumeric​(@NonNull org.semanticweb.owlapi.model.OWLLiteral literal)