DatabaseComparator (Oracle - Berkeley DB Java Edition API)
Date: 2014-12-16

com.sleepycat.je

## Interface DatabaseComparator

- All Superinterfaces:
    Comparator<byte[]>, Serializable

      public interface DatabaseComparator
      extends Comparator<byte[]>, Serializable

  Implemented by btree and duplicate comparators that need to be initialized before they are used or need access to the environment's ClassLoader property.
  Since:
    5.0

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `initialize(ClassLoader loader)` Called to initialize a comparator object after it is instantiated or deserialized, and before it is used.

    - ### Methods inherited from interface java.util.Comparator

      `compare, equals`

- - ### Method Detail

    - #### initialize

          void initialize(ClassLoader loader)

      Called to initialize a comparator object after it is instantiated or deserialized, and before it is used.
      Parameters:
        `loader` - is the environment's ClassLoader property.

Copyright (c) 2004, 2014 Oracle and/or its affiliates. All rights reserved.