| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | |
| | | import java.util.Collection; |
| | | import java.util.Collections; |
| | | |
| | | import org.opends.server.api.AbstractMatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.types.ByteSequence; |
| | | import org.opends.server.types.ByteString; |
| | |
| | | * and referenced in RFC 2252. |
| | | */ |
| | | public class CaseIgnoreOrderingMatchingRule |
| | | extends OrderingMatchingRule |
| | | extends AbstractMatchingRule |
| | | implements OrderingMatchingRule |
| | | { |
| | | /** |
| | | * The serial version identifier required to satisfy the compiler because this |
| | |
| | | * ascending order, or zero if there is no difference between the |
| | | * values with regard to ordering. |
| | | */ |
| | | @Override |
| | | public int compareValues(ByteSequence value1, ByteSequence value2) |
| | | { |
| | | return StaticUtils.compare(value1, value2); |
| | | return value1.compareTo(value2); |
| | | } |
| | | |
| | | |