org.netbeans.modules.cnd.api.model/1 1.3 1

org.netbeans.modules.cnd.api.model.util
Class CsmSortUtilities

java.lang.Object
  
extended by org.netbeans.modules.cnd.api.model.util.CsmSortUtilities
public class CsmSortUtilities
extends Object

utility methods for sorting Csm elements


Nested Class Summary
static class CsmSortUtilities.DefaultClassNameComparator
           
static class CsmSortUtilities.InsensitiveClassNameComparator
           
static class CsmSortUtilities.NaturalMemberNameComparator
           
static class CsmSortUtilities.NsNaturalMemberNameComparator
           
 
Field Summary
static Comparator CLASS_NAME_COMPARATOR
           
static Comparator INSENSITIVE_CLASS_NAME_COMPARATOR
           
static Comparator INSENSITIVE_NATURAL_MEMBER_NAME_COMPARATOR
           
static Comparator INSENSITIVE_NATURAL_NAMESPACE_MEMBER_COMPARATOR
           
static Comparator NATURAL_MEMBER_NAME_COMPARATOR
           
static Comparator NATURAL_NAMESPACE_MEMBER_COMPARATOR
           
 
Method Summary
static List<CsmNamedElement> filterList(List<? extends CsmDeclaration> list, String strPrefix, boolean match, boolean caseSensitive)
           
static boolean matchName(String name, String strPrefix)
           
static boolean matchName(String name, String strPrefix, boolean match)
           
static boolean matchName(String name, String strPrefix, boolean match, boolean caseSensitive)
           
static List sortClasses(List classes, boolean sensitive)
           
static List sortMembers(List members, boolean sensitive)
           
static List sortMembers(List members, boolean natural, boolean sensitive)
           
static List sortNamespaceMembers(List members, boolean sensitive)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAME_COMPARATOR

public static final Comparator CLASS_NAME_COMPARATOR

INSENSITIVE_CLASS_NAME_COMPARATOR

public static final Comparator INSENSITIVE_CLASS_NAME_COMPARATOR

NATURAL_MEMBER_NAME_COMPARATOR

public static final Comparator NATURAL_MEMBER_NAME_COMPARATOR

INSENSITIVE_NATURAL_MEMBER_NAME_COMPARATOR

public static final Comparator INSENSITIVE_NATURAL_MEMBER_NAME_COMPARATOR

NATURAL_NAMESPACE_MEMBER_COMPARATOR

public static final Comparator NATURAL_NAMESPACE_MEMBER_COMPARATOR

INSENSITIVE_NATURAL_NAMESPACE_MEMBER_COMPARATOR

public static final Comparator INSENSITIVE_NATURAL_NAMESPACE_MEMBER_COMPARATOR
Method Detail

matchName

public static boolean matchName(String name,
                                String strPrefix)

matchName

public static boolean matchName(String name,
                                String strPrefix,
                                boolean match)

matchName

public static boolean matchName(String name,
                                String strPrefix,
                                boolean match,
                                boolean caseSensitive)

filterList

public static List<CsmNamedElement> filterList(List<? extends CsmDeclaration> list,
                                               String strPrefix,
                                               boolean match,
                                               boolean caseSensitive)

sortClasses

public static List sortClasses(List classes,
                               boolean sensitive)

sortMembers

public static List sortMembers(List members,
                               boolean sensitive)

sortMembers

public static List sortMembers(List members,
                               boolean natural,
                               boolean sensitive)

sortNamespaceMembers

public static List sortNamespaceMembers(List members,
                                        boolean sensitive)

org.netbeans.modules.cnd.api.model/1 1.3 1

Built on November 23 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.

Project Features

About this Project

CND was started in November 2009, is owned by DimaZh, and has 194 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close