org.eclipse.rdf4j.model.util

## Class LexicalValueComparator

- java.lang.Object
- - org.eclipse.rdf4j.model.util.LexicalValueComparator

- All Implemented Interfaces:
    Serializable, Comparator<Value>

      public class LexicalValueComparator
      extends Object
      implements Serializable, Comparator<Value>

  A lexical rdf term Comparator, this class does not compare numerically and is therefore a bit faster than a SPARQL compliant comparator.
  Author:
    james, Arjohn Kampman
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LexicalValueComparator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(Value o1, Value o2)`

    - ### 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

      `comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong`

- - ### Constructor Detail

    - #### LexicalValueComparator

          public LexicalValueComparator()

  - ### Method Detail

    - #### compare

          public int compare(Value o1,
                             Value o2)

      Specified by:
        `compare` in interface `Comparator<Value>`

Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.