com.fasterxml.jackson.databind.util

Class Comparators



  • public class Comparators
    extends Object
    Helper class for constructing objects for comparing content values
    • Constructor Detail

      • Comparators

        public Comparators()
    • Method Detail

      • getArrayComparator

        public static Object getArrayComparator(Object defaultValue)
        Helper method used for constructing simple value comparator used for comparing arrays for content equality.

        Note: current implementation is not optimized for speed; if performance ever becomes an issue, it is possible to construct much more efficient typed instances (one for Object[] and sub-types; one per primitive type).

Copyright © 2012 FasterXML. All Rights Reserved.