org.jboss.dna.graph.property
Class ValueComparators

java.lang.Object
  extended by org.jboss.dna.graph.property.ValueComparators

@Immutable
public class ValueComparators
extends Object

A set of Comparator objects for the different kinds of property values.

See Also:
PropertyType.getComparator()

Field Summary
static Comparator<Binary> BINARY_COMPARATOR
          A comparator of binary values.
static Comparator<Boolean> BOOLEAN_COMPARATOR
          A comparator of boolean values.
static Comparator<Calendar> CALENDAR_COMPARATOR
          A comparator of calendar values.
static Comparator<Date> DATE_COMPARATOR
          A comparator of date values.
static Comparator<DateTime> DATE_TIME_COMPARATOR
          A comparator of date-time instances.
static Comparator<BigDecimal> DECIMAL_COMPARATOR
          A comparator of decimal values.
static Comparator<Double> DOUBLE_COMPARATOR
          A comparator of double values.
static Comparator<Long> LONG_COMPARATOR
          A comparator of long values.
static Comparator<Name> NAME_COMPARATOR
          A comparator of name values.
static Comparator<Object> OBJECT_COMPARATOR
          A comparator of other values.
static Comparator<Path> PATH_COMPARATOR
          A comparator of path values.
static Comparator<Reference> REFERENCE_COMPARATOR
          A comparator of reference values.
static Comparator<String> STRING_COMPARATOR
          A comparator of string values.
static Comparator<URI> URI_COMPARATOR
          A comparator of URI values.
static Comparator<UUID> UUID_COMPARATOR
          A comparator of UUID values.
 
Constructor Summary
ValueComparators()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING_COMPARATOR

public static final Comparator<String> STRING_COMPARATOR
A comparator of string values.


LONG_COMPARATOR

public static final Comparator<Long> LONG_COMPARATOR
A comparator of long values.


DOUBLE_COMPARATOR

public static final Comparator<Double> DOUBLE_COMPARATOR
A comparator of double values.


DECIMAL_COMPARATOR

public static final Comparator<BigDecimal> DECIMAL_COMPARATOR
A comparator of decimal values.


BINARY_COMPARATOR

public static final Comparator<Binary> BINARY_COMPARATOR
A comparator of binary values. Although Binary is Comparable, this comparator does not rely upon any particular Binary implementation. Thus, Binary implementations can use this for their Comparable.compareTo(Object) implementation.


BOOLEAN_COMPARATOR

public static final Comparator<Boolean> BOOLEAN_COMPARATOR
A comparator of boolean values.


DATE_TIME_COMPARATOR

public static final Comparator<DateTime> DATE_TIME_COMPARATOR
A comparator of date-time instances.


DATE_COMPARATOR

public static final Comparator<Date> DATE_COMPARATOR
A comparator of date values.


CALENDAR_COMPARATOR

public static final Comparator<Calendar> CALENDAR_COMPARATOR
A comparator of calendar values.


NAME_COMPARATOR

public static final Comparator<Name> NAME_COMPARATOR
A comparator of name values.


PATH_COMPARATOR

public static final Comparator<Path> PATH_COMPARATOR
A comparator of path values.


URI_COMPARATOR

public static final Comparator<URI> URI_COMPARATOR
A comparator of URI values.


UUID_COMPARATOR

public static final Comparator<UUID> UUID_COMPARATOR
A comparator of UUID values.


REFERENCE_COMPARATOR

public static final Comparator<Reference> REFERENCE_COMPARATOR
A comparator of reference values.


OBJECT_COMPARATOR

public static final Comparator<Object> OBJECT_COMPARATOR
A comparator of other values.

Constructor Detail

ValueComparators

public ValueComparators()


Copyright © 2008-2009 JBoss, a division of Red Hat. All Rights Reserved.