4714N/A/*
4714N/A * CDDL HEADER START
4714N/A *
4714N/A * The contents of this file are subject to the terms of the
4714N/A * Common Development and Distribution License, Version 1.0 only
4714N/A * (the "License"). You may not use this file except in compliance
4714N/A * with the License.
4714N/A *
6982N/A * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
6982N/A * or http://forgerock.org/license/CDDLv1.0.html.
4714N/A * See the License for the specific language governing permissions
4714N/A * and limitations under the License.
4714N/A *
4714N/A * When distributing Covered Code, include this CDDL HEADER in each
6982N/A * file and include the License file at legal-notices/CDDLv1_0.txt.
6982N/A * If applicable, add the following below this CDDL HEADER, with the
6982N/A * fields enclosed by brackets "[]" replaced with your own identifying
6982N/A * information:
4714N/A * Portions Copyright [yyyy] [name of copyright owner]
4714N/A *
4714N/A * CDDL HEADER END
4714N/A *
4714N/A *
4714N/A * Portions Copyright 2009 Sun Microsystems, Inc.
4714N/A */
4714N/A
4714N/Apackage com.ibm.staf.service.opends.tester;
4714N/A
4714N/Aimport java.util.Comparator;
4714N/Aimport org.opends.dsml.protocol.DsmlAttr;
4714N/A
4714N/Apublic class DsmlAttrCompare implements Comparator {
4714N/A
4714N/A public int compare(Object o1, Object o2) {
4714N/A DsmlAttr attr1 = (DsmlAttr) o1;
4714N/A DsmlAttr attr2 = (DsmlAttr) o2;
4714N/A return (attr1.getName().compareTo(attr2.getName()));
4714N/A }
4714N/A}